![]() |
|
|
#23 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
This isn't proving primes, this is showing that the number is a probable prime. The likelihood of a random PRP being composite is ridiculously low, but mathematically it's important.
http://en.wikipedia.org/wiki/Probable_prime Quote:
Without any advance sieving, (just some prefactoring on each number with the -f100 argument) I can search all PRPs up to n=10k (should be 4772 digits) in about 9 minutes. (primes/PRPs found from this attached, for those unfamiliar, primes are in pfgw-prime.log and PRPs are in pfgw.log; these primes were found because they were so small it was easier to trivially prove them prime by trial division than to run a PRP test) This is the file used in PFGW: Code:
ABC2 5*3^$a$b
a: from 1 to 10000
b: in { -2 +2 }
You could probably speed the search significantly by sieving in advance using a program like srsieve, then giving the sieved file to PFGW and not using the -f100 command. I suspect that this is how Batalov has continued the search into the tens of thousands of digits, which certainly wouldn't be very fast (if possible) with Java. Last fiddled with by Mini-Geek on 2010-11-05 at 21:34 |
|
|
|
|
|
|
#24 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Quote:
spkarra, you are doing something for a month (and will continue for another year at this rate) - what I (or anyone else here could) have done in one evening. The plus2 series is now done to n<=35000 (with an additional What is the take home message here? If anything, it is this: one method is never enough (in your case, brute force), and inventing a wheel is never a good option; instead quickly exploring what other methods exist is a must. Don't take it as an offense, alright? I see that you are trying to learn something here; -- ok, you already learned how to do it (somewhat) in Java, now it's time to move on and learn more. Good luck! Last fiddled with by Batalov on 2010-11-05 at 22:27 Reason: PRPs! |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime numbers Grid, to test an odd integer on 44 | Zarck | Math | 5 | 2012-03-06 14:43 |
| Grid of Primes | davar55 | Puzzles | 23 | 2010-12-12 21:21 |
| Curious Prime Grid dump in secondpass | VJS | Prime Sierpinski Project | 4 | 2008-08-09 09:15 |
| Grid Max and Min | davar55 | Puzzles | 29 | 2008-03-07 16:34 |
| Sun Grid | pacionet | Lounge | 2 | 2006-03-25 21:25 |