mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-19, 16:44   #540
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

@Cmd: Please, post something of substance.

Also; Karsten: I managed to do more work in 30 minutes, than I did with the script in 1 hour.

Last fiddled with by 3.14159 on 2010-09-19 at 16:49
3.14159 is offline   Reply With Quote
Old 2010-09-19, 18:43   #541
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Up to n = 625, which means, I covered every prime under about 1880 digits.

Oops. 1962 digits*

Last fiddled with by 3.14159 on 2010-09-19 at 18:54
3.14159 is offline   Reply With Quote
Old 2010-09-19, 19:28   #542
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Covered every prime below 2000 digits. Excellent.

Also; in terms of sieving for k * 2594800 + 1; I've sieved to about 23.64 trillion so far.

Code:
15:54:47 36131 k's remaining. p=23631242467579 divides k=1138351
Should I continue further?

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

3×1,993 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
Should I continue further?
How long does it take you to sieve out additional candidates? How long does each test take? How far in your list do you expect to go?
CRGreathouse is offline   Reply With Quote
Old 2010-09-19, 21:47   #544
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by Charles
How long does it take you to sieve out additional candidates? How long does each test take? How far in your list do you expect to go?
1. The average time for elimination is now between 1.5 and 2.5 minutes.
2. Each test takes 13.5 to 14 minutes.
3. I'm just a few away from reaching a sieve efficiency of 28. I'm at about 27.5 to 27.7.

So far, I have saved 4-6 days of testing over a conventional limit.

Last fiddled with by 3.14159 on 2010-09-19 at 21:49
3.14159 is offline   Reply With Quote
Old 2010-09-19, 23:02   #545
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

I would do more sieving, then, until it's 5-7 minutes between eliminations.

Last fiddled with by CRGreathouse on 2010-09-19 at 23:02
CRGreathouse is offline   Reply With Quote
Old 2010-09-20, 03:10   #546
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
So far, I have saved 4-6 days of testing over a conventional limit.
Where are you getting this "conventional limit"? Usually, the standard procedure for a straight-up prime search (that is, not a conjecture search where a k is no longer searched after a prime is found) is to sieve until the removal rate is equal to the time it takes to do a PRP test about 80% through the range.
mdettweiler is offline   Reply With Quote
Old 2010-09-20, 03:33   #547
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Where are you getting this "conventional limit"? Usually, the standard procedure for a straight-up prime search (that is, not a conjecture search where a k is no longer searched after a prime is found) is to sieve until the removal rate is equal to the time it takes to do a PRP test about 80% through the range.
Right. I used removal rate @ 100% of expected depth (rather than in the whole range, since I supposed you were looking for only one k) = time for PRP test.

Last fiddled with by CRGreathouse on 2010-09-20 at 03:36
CRGreathouse is offline   Reply With Quote
Old 2010-09-20, 03:35   #548
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

186916 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Right. (I was using 100%, not 80%, though, in my above suggestion.)
But...13.5 to 14 minutes != 5 to 7 minutes.
Quote:
Originally Posted by 3.14159 View Post
2. Each test takes 13.5 to 14 minutes.
Quote:
Originally Posted by CRGreathouse View Post
I would do more sieving, then, until it's 5-7 minutes between eliminations.

Last fiddled with by mdettweiler on 2010-09-20 at 03:36 Reason: typo
mdettweiler is offline   Reply With Quote
Old 2010-09-20, 03:54   #549
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
But...13.5 to 14 minutes != 5 to 7 minutes.
36131 primes remain at sieve efficiency 28 at size 2^594800, so the expected number of primes is 36131 * 28/(594800 * log 2) = 2.45.... Assuming (as mentioned above) that Pi wants to find exactly one prime, one prime should be removed from the first 1/2.45-th of the range in the same amount of time as a PrP test. Assuming (reasonably) that the sieve removes candidates at roughly the same rate throughout the range, that means that the sieving should continue until it takes 1/2.45 times as long as a PrP test. If a PrP test takes 14 minutes, then sieving should take about 14/2.45 = 5.7... minutes.

This procedure should roughly minimize the time needed to find the first prime in the range. To minimize the time needed to test the entire range (if you plan to continue past the first prime), you should sieve until the removal time is equal to the average time for a PrP test, as mdettweiler seems to suggest.

Last fiddled with by CRGreathouse on 2010-09-20 at 03:58
CRGreathouse is offline   Reply With Quote
Old 2010-09-20, 04:38   #550
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
36131 primes remain at sieve efficiency 28 at size 2^594800, so the expected number of primes is 36131 * 28/(594800 * log 2) = 2.45.... Assuming (as mentioned above) that Pi wants to find exactly one prime, one prime should be removed from the first 1/2.45-th of the range in the same amount of time as a PrP test. Assuming (reasonably) that the sieve removes candidates at roughly the same rate throughout the range, that means that the sieving should continue until it takes 1/2.45 times as long as a PrP test. If a PrP test takes 14 minutes, then sieving should take about 14/2.45 = 5.7... minutes.

This procedure should roughly minimize the time needed to find the first prime in the range. To minimize the time needed to test the entire range (if you plan to continue past the first prime), you should sieve until the removal time is equal to the average time for a PrP test, as mdettweiler seems to suggest.
Ah, right--I forgot that Pi is only testing until he finds a prime. Pi, you may want to consider going ahead and testing the whole range--it's most efficient that way, since no sieving is wasted. And since the range is well enough ahead of the 5000th place that you should be able to test it all before it becomes too small, you may just get lucky and pull out more primes than statistically expected for the range.
mdettweiler 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.56, 3.97, 3.60

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.