mersenneforum.org Matt's first dabbling with yafu
 Register FAQ Search Today's Posts Mark Forums Read

 2022-06-15, 00:52 #1 MattcAnderson     "Matthew Anderson" Dec 2010 Oregon, USA 49516 Posts Matt's first dabbling with yafu With some help, I was able to get yafu going on this laptop. I am sitting here in a coffee shop and I am having a good time. Today's commands are siqs(100) and the output was P2 = 13 C2 = 77 That is so cool! Also, I tried some odd numbers I also tried factor(13579) Now I know that 13579 = 37*367 That makes today a good day, in my world. Have a good one. Regards, Matt Does anyone know if a coded loop is possible? like (Maple) for a from 1 to 100 do if isprime(a) then print(a) end if end do Thanks in advance. \
2022-06-15, 12:36   #2
bsquared

"Ben"
Feb 2007

32×11×37 Posts

Quote:
 Originally Posted by MattcAnderson With some help, I was able to get yafu going on this laptop. I am sitting here in a coffee shop and I am having a good time. Today's commands are siqs(100) and the output was P2 = 13 C2 = 77 That is so cool!
Pretty funny, but I wonder what version of yafu you are using? Because since at least the year 2013 yafu tells me:

Code:
.\yafu-x64.exe "siqs(100)"

input must be odd

***factors found***

***co-factor***
C3 = 100

ans = 100
And prior to that it would run some trial division first and get the correct answer.

Quote:
 Originally Posted by MattcAnderson Does anyone know if a coded loop is possible? like (Maple) for a from 1 to 100 do if isprime(a) then print(a) end if end do Thanks in advance. \
I worked on that a while back but have since removed it. So, no.

2022-06-15, 21:12   #3
MattcAnderson

"Matthew Anderson"
Dec 2010
Oregon, USA

3×17×23 Posts

oops, my bad, thanks for catching that Ben.
I appreciate the effort to proofread my stuff.

I found out about good prime numbers recently

MCA
June 15 2022

PS Thanks for the info. It looks like YAFU is not as powerful as Maple computer programming language.
Maple has things like "if then" and "loops"

As kind of a funny joke, note that with good primes you compare a prime with the product of the next smallest and the next biggest.
So you play "monkey in the middle" with numbers.

Have a nice day.

see attached
Attached Files
 Scan_0014.pdf (294.9 KB, 17 views)

Last fiddled with by MattcAnderson on 2022-06-15 at 21:15 Reason: edited to add

 Similar Threads Thread Thread Starter Forum Replies Last Post MattcAnderson MattcAnderson 20 2022-07-20 17:14 MattcAnderson MattcAnderson 6 2022-07-09 17:42 MattcAnderson MattcAnderson 6 2022-04-17 05:01 MattcAnderson MattcAnderson 20 2021-04-08 04:23 EdH YAFU 8 2018-03-14 17:22

All times are UTC. The time now is 03:08.

Wed Sep 28 03:08:13 UTC 2022 up 41 days, 36 mins, 0 users, load averages: 0.71, 0.74, 0.83