![]() |
|
|
#188 |
|
Nov 2008
2×33×43 Posts |
This runs an APR-CL test when N+/-1 cannot prove primality. This would probably take years for a 10000 digit number. If you really want to prove "random" 10000 digit numbers prime, Primo is faster (AFAIK, nobody has ever proven a 10000 digit number prime with PARI).
|
|
|
|
|
|
#189 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-01 at 17:57 |
|
|
|
|
|
|
#190 |
|
Nov 2008
44228 Posts |
Ah, so your list of programs to use is for special-form numbers, not *any* number of the specified size.
|
|
|
|
|
|
#191 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-08-01 at 18:00 |
|
|
|
|
|
|
#192 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
Quote:
I'm not sure what you mean by "have to set up a file just for the sieving"; usually the way I sieve is with a command like this: srsieve -G -n 25000 -N 100000 -P 1e6 9940*1999^n+1 This sieves 9940*1999^n+1 for n=25K-100K up to p=1e6 and outputs a NewPGen format output file. (-G produces one file no matter how many sequences you sieve at once, whereas -g produces one for each sequence a la NewPGen.) Once that's done, I would run the output file (which would be named t16_b1999.prp if I remember correctly) through sr1sieve as follows: sr1sieve -i t16_b1999.prp -o t16_b1999.prp -P 10e12 In the above example, it picks up where the file was last left off (in this case, at p=1e6) and continues up to the specified -P depth (in this case, 10e12--not necessarily optimal depth in your case but picked as an arbitrary ballpark figure by me for this example). You can monitor the sec/factor rate as it's output along the way, and when that rate is about the same as the time it takes to PRP test a candidate 75% or so through the range, you're done and can press Ctrl-C to stop the sieve right there and then. The reason for using the two separate programs is that sr1sieve is incapable of sieving from the ground up (i.e., from p=2). More specifically, p must be greater than both k and b. I usually sieve to a nominal depth like p=1e6 (which takes only seconds, maybe a few minutes depending on the sieve) with srsieve, and then switch to sr1sieve since it's around that point where the latter becomes clearly faster. Note also that sr1sieve can only do one sequence at a time, while srsieve can do multiple sequences. Since you're used to NewPGen, sieving only one sequence at a time is nothing new, but once you start doing more than two sequences it's faster to sieve them together than separately. (For exactly two sequences it's about the same.) For multiple sequences, you start with srsieve as usual (just keep appending more sequences to the end of the command line as needed, or if there's a lot of them, stick them in a text file one per line and put the filename on the command line instead), then use sr2sieve, which is operated a little differently than sr1sieve but does pretty much the same thing in the end. If you're sieving one sequence at a time, you have alternately the option of starting the sieve with NewPGen instead of srsieve (for a nominal depth like p=1e6, NewPGen's slower speed is not going to make a significant difference), then continuing with sr1sieve as before. If you need any help running the sr*sieve applications, feel free to drop me a line--they can be a little tricky at first but once you get the hang of it it's dead easy.
|
|
|
|
|
|
|
#193 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
For randoms, I only prove primality for small primes, using either Miller-Rabin(10-30 iterations later)/trial division/APRT-CL.
P.S: I say 10-30 iterations, because the aim is to prove the number prime, rather than leave it off as a PRP. The odds of failure are at 1 in 1152921504606846976. (It guarantees primality for the very small primes.) P.P.S: Bumped into a prime: 3704825883783142984444157877899665197032083444319256075703418880001. Last fiddled with by 3.14159 on 2010-08-01 at 18:32 |
|
|
|
|
|
#194 | |
|
Aug 2006
3×1,993 Posts |
Quote:
|
|
|
|
|
|
|
#195 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Also: To the prime search: I figured that there is a 4th personal record: Largest prime found via an arithmetic progression. Wait.. Isn't every prime p>2 part of an arithmetic progression? In that case, the largest known prime number in an arithmetic progression is 243112609 - 1, which has 12978189 decimal digits. Can't wait for a 20 million digit discovery! 3: 2(1) + 1 5: 2(2) + 1; 6(1)-1 7: 2(3) + 1; 6(1) + 1; 4(1) + 3 11: 2(5) + 1; 6(2) - 1; 10(1) + 1; 9(1) + 2; 3(3) + 2; 4(2) + 3; etc. Last fiddled with by 3.14159 on 2010-08-01 at 19:15 |
|
|
|
|
|
|
#197 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Speaking of primes: A prime-numbered post in the thread: 197. Also the penultimate prime before 200. Last fiddled with by 3.14159 on 2010-08-01 at 21:34 |
|
|
|
|
|
|
#198 |
|
Aug 2006
175B16 Posts |
Ah. I assumed you meant something nonobvious: that every odd prime was a member of a finite arithmetic progression of primes (with 3+ terms). Clearly every integer is in the arithmetic progression with common difference 1...
Last fiddled with by CRGreathouse on 2010-08-01 at 21:45 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime posting thread, part 2. (With a catch.) | 3.14159 | Miscellaneous Math | 55 | 2010-11-19 23:55 |
| Tiny range request .... 555.1M | petrw1 | LMH > 100M | 1 | 2010-07-13 15:35 |
| Other primes thread | nuggetprime | No Prime Left Behind | 32 | 2009-10-21 21:48 |
| Error: tiny factoring failed | 10metreh | Msieve | 26 | 2009-03-08 23:28 |
| Tiny error on nfsnet pages. | antiroach | NFSNET Discussion | 1 | 2003-07-08 00:27 |