20050315, 19:53  #1 
Nov 2004
California
2^{3}·3·71 Posts 
The fastest way to a top5000 prime?
I’ve been searching for primes of the form k*2^n1 with the 15k project for a while now and became interested in finding candidates, k, that would produce a top5000 prime the fastest. How long it takes to find a top5000 prime for a particular k value depends on many factors: how efficient sieving is, how long LLR takes for that particular k, and how often that k produces primes. To estimate this, I started with k’s formed by all combinations of the first 11 primes and k>1000. For each k, measure
• The number of candidates left after sieving n=010000 to 100M • The number of primes in the range n=010000 • The number of bits in k (the time for LLR is proportional to this) The result of this can be summed up in a couple of lists. First is the top20 list of the k’s that had the most primes in the range n=010000. All of the k’s here are divisible by 15k. Code:
# Primes K 81 8331405 77 944876594805 76 7526103585 73 743411955 72 685084785 71 640049865 71 41237498445 69 1818438765 69 169215941895 69 152125131763605 68 49335 68 965426385 68 1272300315 67 285413005185 67 1212935295 67 553437885 67 51449055 67 377481716535 66 578931045 66 3009765 Code:
Score K Primes already on top5000 list 2481891 8331405 None! 2545731 49335 184364, 199133, 242161 2552143 26565 198349, 217001 2744279 25935 None! 2819593 6555 None! 2850866 19635 189197 2955186 373065 None! 2990424 102765 None! 3013362 62985 None! 3062642 67773 None! 3085355 5865 None! 3098476 3009765 None! 3119285 7526103585 None! 3123287 743411955 None! 3180954 2330445 None! 3197466 19437 None! 3222459 465465 None! 3238416 2805 185593, 192628, 200027, 200212, 203574, 212227, 230666 3242361 685084785 None! 3244999 2667885 None! 
20050316, 14:50  #2 
Nov 2004
California
2^{3}·3·71 Posts 
This one found 5 prime from n=183221k. Based on the estimates
above, I only expected one prime, but happily surprised: 8331405*2^2075551 8331405*2^2058851 8331405*2^1991271 8331405*2^1981221 8331405*2^1862511 Last fiddled with by Kosmaj on 20050316 at 22:44 Reason: Missing exp sign "^" added. 
20050317, 02:43  #3 
Nov 2003
2×1,811 Posts 
Your approach is interesting. AFAIK when selecting k's nobody tried to take into account the fact that LLR can process small k's much faster than larger ones. Possibly because the first version of LLR released in 2003 couldn't. Also when selecting, or better to say constructing k's (before checking the weight) it was customary (if I'm not mistaken) to select k so that for no n, k*2^n1 (or +1) is divisible by any small primes (smaller than a certain value) while 8331405*2^n1 is divisible by 11 and 13 for some values of n.
BTW, do you mind if I try k=25935 from 183,500 to about 210,000. And congrats on many primes already found for k=8331405. 
20050317, 03:10  #4 
Nov 2004
California
2^{3}×3×71 Posts 
No problem taking 25935. The only other one I'm trying out is 6555.

20050317, 04:17  #5 
Nov 2003
2·1,811 Posts 
OK, thanks!
BTW, some k have been searched before and following primes are recored on Top5000. k=25935: 46144, 47396, 117344, 121855, 139225, 152803, 173518 k=373065: 178284, 161917, 150532, 138979 and no other k from the list of 20 fastest marked as primeless. 
20050317, 07:37  #6 
Nov 2003
3622_{10} Posts 
I just found out that k=25935 had been already tested by Thomas to 200k. It is listed on the 15k stats page but mistakenly as k=29535.
This k is not so promising but I'll test the 200220k range. Then I'll switch to k=67773 from 183500 to about 210k. [Two minutes later] One of my LLR clients just found that 25935*2^2199951 is prime!! (66230 digits) It was the very last candidate in the 200220k range (sieved to 30 bn) and since I started another LLR client to work in the reverse order it was found at once! Last fiddled with by Kosmaj on 20050317 at 09:06 
20050317, 22:54  #7 
"Sander"
Oct 2002
52.345322,5.52471
29·41 Posts 
The fastest way is probably a fixed N search.
At least thats what it used to be when i was searching for primes. I don't know about changes in sieving, but fixed N sieving used to be much faster. Besides, the size of the number doesn't grow (much) if you don't find a prime. Just my 2 cents 
20050402, 21:38  #8 
Nov 2004
California
2^{3}×3×71 Posts 
Just for the sake of completeness, I've updated the table this time
searching for all primes with n>100k. My previous list just searched for primes currently on the top5000 list... Code:
Score K Primes already on top5000 list with n>100k 2481891 8331405 186251, 198122, 199127, 200363, 205885, 207555, 220532, 222399, 264459, 269433, 274141 2545731 49335 184364, 199133, 242161 2552143 26565 109141, 112017, 113640, 114935, 124714, 135551, 141212, 145695, 151485, 164728, 179468, 181672, 198349, 217001 2744279 25935 117344, 121855, 139225, 152803, 173518, 219995 2819593 6555 211720, 235260, 236514 2850866 19635 125045, 156800, 189197 2955186 373065 138979, 150532, 161917, 178284 2990424 102765 None! 3013362 62985 None! 3062642 67773 None! 3085355 5865 None! 3098476 3009765 None! 3119285 7526103585 None! 3123287 743411955 None! 3180954 2330445 None! 3197466 19437 None! 3222459 465465 None! 3238416 2805 200212 3242361 685084785 None! 3244999 2667885 None! 
20050411, 03:07  #9  
1001010_{2} Posts 
speed
Quote:
If you use RMA, Newpgen and LLR are automated, and return primes the quickest using this method. Download RMA from the yahoo primeform group, and then copy MSCOMCTL.ocx, and COMDLG32.ocx, from your windows\system32 folder. Place them into the same folder as Newpgen, and LLR . Then click "preferences", "other options", and make sure "RMA enabled", is not checked. TTn Last fiddled with by TTn on 20050411 at 03:12 

20050411, 17:06  #10 
Nov 2004
California
2^{3}·3·71 Posts 
Thanks for the info smh and TTn. I'll take a look at fixedn sieving.
Now that I've tried out some of the k's in my table, I have another question. Some k's like 8331405 have 14 primes in the top5000 from n=198433k. Others I have searched n=187300k and found 0 top5000 primes. It looks like the # of primes found in 010k isn't always a good predictor of larger primes (unless the range happens to hit the arbitrarily large gaps between primes...). Any pointers here? thanks, Larry 
20050412, 04:19  #11  
2^{3}×23×47 Posts 
Quote:
Nash weight, or Proth weight is also not always a good predictor. I am including an new option in RMA, that hunts outwards(over under) from the predicted area until a prime is found. Then a new prediction is made based on past data (kn prime) and existing weights, and testing resumes from there. Although a simple idea, it is faily complex to implement, and will skip a small # primes. Although I should add that we are just making sand castles, as the tide comes in. Last fiddled with by TTn on 20050412 at 04:20 

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Choose your own K and work on finding a top5000 prime!  lsoule  Riesel Prime Search  439  20211103 02:52 
The Fastest Path  a1call  Puzzles  23  20160323 17:46 
Fastest you've driven a car?  Oddball  Lounge  43  20110314 00:26 
Help test 210885  Find a new top 5000 prime!  SlashDude  Riesel Prime Search  121  20080103 08:47 
Help test 2995125705  Find a new top 5000 prime!  SlashDude  Riesel Prime Search  538  20070508 01:42 