mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-20, 05:12   #551
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

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).
CRGreathouse is offline   Reply With Quote
Old 2010-09-20, 21:54   #552
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

32208 Posts
Default

Code:
17:50:25 35949 k's remaining. p=27996694779059 divides k=1397385
This is excellent. I am at under 36000 k's. Very excellent indeed. It would probably take 4-8 times that effort to reach under 35000 k's.

Last fiddled with by 3.14159 on 2010-09-20 at 21:54
3.14159 is offline   Reply With Quote
Old 2010-09-20, 23:17   #553
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
This is excellent. I am at under 36000 k's. Very excellent indeed. It would probably take 4-8 times that effort to reach under 35000 k's.
Well, if you take my advice you should sieve until roughly 35200 remain; if you take mdettweiler's advice, sieve until roughly 34300 remain.

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
CRGreathouse is offline   Reply With Quote
Old 2010-09-20, 23:27   #554
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

22·727 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
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.)
Probably, no guarantee!
kar_bon is offline   Reply With Quote
Old 2010-09-21, 00:06   #555
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

All primes in the range? I'm content enough with one 179k-digit prime.
3.14159 is offline   Reply With Quote
Old 2010-09-21, 00:10   #556
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by Karsten View Post
Probably, no guarantee!
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
3.14159 is offline   Reply With Quote
Old 2010-09-21, 00:26   #557
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

1010001011102 Posts
Default

so you are 'bound' to find about 7 primes? I know odds don't add
firejuggler is offline   Reply With Quote
Old 2010-09-21, 00:54   #558
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by kar_bon View Post
Probably, no guarantee!
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.

Quote:
Originally Posted by 3.14159 View Post
All primes in the range? I'm content enough with one 179k-digit prime.
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
CRGreathouse is offline   Reply With Quote
Old 2010-09-21, 01:11   #559
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by Charles
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%.
I looked at a range of 2 million; I need to check the database to ensure I am not going to discover any previously found primes.

... 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:
Originally Posted by NewPGen
21:09:07 35891 k's remaining. p=29574929898821 divides k=1944541

Last fiddled with by 3.14159 on 2010-09-21 at 01:16
3.14159 is offline   Reply With Quote
Old 2010-09-21, 01:19   #560
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Based on those odds; I should on average find at least 10 primes. Or am I making the gambler's fallacy?
By my calculations your odds of finding 10 or more primes in this range is approximately 2.5%.
CRGreathouse is offline   Reply With Quote
Old 2010-09-21, 01:21   #561
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

69016 Posts
Default

Quote:
Originally Posted by Charles
By my calculations your odds of finding 10 or more primes in this range is approximately 2.5%.
I made the false assumption of looking at all the candidates.

Last fiddled with by 3.14159 on 2010-09-21 at 01:22
3.14159 is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 22:39.


Fri Aug 6 22:39:35 UTC 2021 up 14 days, 17:08, 1 user, load averages: 4.60, 3.97, 3.59

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.