![]() |
|
|
#12 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2·47·101 Posts |
Finding megabit primes is fairly easy.
e.g. I have found nine. Therefore it must be easy.Finding million-digit primes is not for the IGG. There's only 48 of them known ATM. Commit a CPU-decade and then maybe you will get something. |
|
|
|
|
|
#13 | |
|
Nov 2003
22×5×373 Posts |
Quote:
(i.e. to find a prime near N) One must search, on average log(N) candidates. If one restricts to numbers N such that the full factorization of N-1 is known (or even the factorization of N-1 up to N^(1/3)) testing each candidate takes O(log(N)) multiplies mod N. Each multiply takes O(log(N)^(1+o(1))) using FFT's. The implied constants are implementation and machine dependent. |
|
|
|
|
|
|
#14 | |
|
"Lucan"
Dec 2006
England
194A16 Posts |
Quote:
David |
|
|
|
|
|
|
#15 | |
|
Jun 2009
22×32×19 Posts |
Quote:
|
|
|
|
|
|
|
#16 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2·47·101 Posts |
3/10 of N+/-1 will do with Konyagin-Pomerance.
|
|
|
|
|
|
#17 |
|
Nov 2003
22×5×373 Posts |
|
|
|
|
|
|
#18 |
|
Nov 2003
22·5·373 Posts |
|
|
|
|
|
|
#19 |
|
Jun 2009
22×32×19 Posts |
OK, back to the fastest way of finding a megadigit prime. What about using TPSieve? It does fixed-n which gives rather consistent LLR testing times. It's fast and it sieves +1 and -1 in one go.
Two ideas come to mind: 1) Do a "real" twin sieve. The remaining candidates are sieved for +/- 1 so you can duplicate the remaining candidate file and edit the two instances to be a +1 and a -1 input file respectively. 2) Start a +1 and a -1 sieve up to a rather small sieving limit. Combine the files (keep the originals), sort and edit to make a TPS input file. Sieve. Split the factor file into + and - and reduce the candidate files accordingly. This is just an idea that came to mind while lawnmowing. I have not done any testing or benchmarking. What do you think of it? |
|
|
|
|
|
#20 |
|
Dec 2008
22×3 Posts |
The fastest way to find a megadigit prime is to search for a Mersenne Prime. It might be possible to use APR-CL on numbers in the million digit range to test for primality, but I suspect that there are any known APR-CL implementations that even work on values of that size: http://primes.utm.edu/prove/prove4_1.html (~3000 digits is the max mentioned in the link above). Similarly, for the elliptical curve method the current record mentioned is 15,267 decimal digits at this site: http://www.ellipsa.eu/ AKS, while polynomial time, is not yet as fast for numbers of reasonable size as ecpp and apr-cl, according to this link: http://primes.utm.edu/prove/prove4_3.html The probabilistic methods while fast (e.g Miller-Rabin) can be fooled by Carmichael numbers: http://en.wikipedia.org/wiki/Primality_test So the answer to the OP's question, "What is the fastest way to find a million digit prime" has only one sensible answer: Join the GIMPS project. The smart-alec answer is to locate M38, or any of his big brothers (M39, M40...).
|
|
|
|
|
|
#21 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
With GIMPS it would not be easy to find a megadigit prime. Only three such primes have been found, and considering the large user base, being the next one to find the prime is incredibly unlikely. As mentioned above, there are 48 such primes known, many more than found by GIMPS.
What you're looking for is the LLR test (and the program named as such). |
|
|
|
|
|
#22 |
|
Romulan Interpreter
Jun 2011
Thailand
32×29×37 Posts |
You don't do Mersenne if you want an "over megadigit prime", that would be stupid. There are better methods, you go for a Cullen, Woodall, GF number, etc.
And by the way, they are not 48 anymore, they are 54 now. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best Work for Finding Primes | Unregistered | Information & Answers | 9 | 2012-06-24 13:50 |
| New method of finding large prime numbers | georgelouis@mac | Math | 41 | 2011-01-25 21:06 |
| Finding the square root of a large mersenne number | Fusion_power | Math | 29 | 2010-10-14 17:05 |
| newbie question - finding small factors of very large numbers | NeoGen | Math | 7 | 2007-03-13 00:04 |
| Finding primes with a PowerPC | rogue | Lounge | 4 | 2005-07-12 12:31 |