![]() |
|
|
#551 |
|
Aug 2006
3·1,993 Posts |
It would be nice to have a script that does these sorts of calculations automatically: find settings that minimize various things, and then estimates of how long to find the first prime, how long to finish the range, etc. under different settings (with at least the first showing maybe the 5%, 25%, 50%, 75%, and 95% probability timings).
|
|
|
|
|
|
#552 |
|
May 2010
Prime hunting commission.
32208 Posts |
Code:
17:50:25 35949 k's remaining. p=27996694779059 divides k=1397385 Last fiddled with by 3.14159 on 2010-09-20 at 21:54 |
|
|
|
|
|
#553 | |
|
Aug 2006
135338 Posts |
Quote:
His advice is appropriate if you intend to find all primes in the range; mine if you intend to find only the first. (My advice gets you to the first faster but the second slower.) Last fiddled with by CRGreathouse on 2010-09-20 at 23:19 |
|
|
|
|
|
|
#554 |
|
Mar 2006
Germany
22·727 Posts |
|
|
|
|
|
|
#555 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
All primes in the range? I'm content enough with one 179k-digit prime.
|
|
|
|
|
|
#556 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
And we shall leave that, to the odds..
Which are about.. 1 in 7400 at worst, and, if counting out 3 as a factor is valid (All primes greater than 3 = 6n+1 or 6n-1); 1 in 4935 at best! (That is, at the moment.) Last fiddled with by 3.14159 on 2010-09-21 at 00:10 |
|
|
|
|
|
#557 |
|
Apr 2010
Over the rainbow
1010001011102 Posts |
so you are 'bound' to find about 7 primes? I know odds don't add
|
|
|
|
|
|
#558 |
|
Aug 2006
3×1,993 Posts |
Yes, of course. And I haven't even proven that my method is optimal under the random model -- in fact it's probably slightly suboptimal. But it's a reasonable first estimate.
In this case the range won't contain many primes, maybe 2-6. The probability that you'll find at least one prime is something like 99%. Last fiddled with by CRGreathouse on 2010-09-21 at 00:59 |
|
|
|
|
|
#559 | ||
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
... Found no previously submitted prime in that range. I'm lucky others only search small k-values. Based on those odds; I should on average find at least 10 primes. Or am I making the gambler's fallacy? Quote:
Last fiddled with by 3.14159 on 2010-09-21 at 01:16 |
||
|
|
|
|
|
#560 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#561 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-09-21 at 01:22 |
|
|
|
|
![]() |
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 |