mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Sierpinski/Riesel Base 5

Reply
 
Thread Tools
Old 2006-07-04, 19:42   #89
masser
 
masser's Avatar
 
Jul 2003
wear a mask

2×829 Posts
Default

I think geoff should probably do it; he created the code and probably should administer the Prime Pages code for it...

What do you say, geoff?
masser is offline   Reply With Quote
Old 2006-07-04, 23:43   #90
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

22058 Posts
Default

Quote:
Originally Posted by masser
I think geoff should probably do it; he created the code and probably should administer the Prime Pages code for it...

What do you say, geoff?
I have created a Prime Pages entry for srsieve http://primes.utm.edu/bios/page.php?id=905.

Version 0.3.0 splits base b sequences into base b^Q subsequences, but I haven't worked out how to choose the optimal Q yet, and unfortunately the wrong choice can result in a large slowdown.

Experiment with the --limit-base command line switch to get the best throughput for a particular sieve:

--limit-base=X will choose the largest possible Q from the divisors of X.
--limit-base=0 (default) will choose the largest possible Q.
--limit-base=1 will effectively turn off this feature.

There have been a lot of changes to the code recently, so there may be new bugs. Version 0.1.24 is probably the most stable, so use that or NewPGen as a double check if in doubt.
geoff is offline   Reply With Quote
Old 2006-07-05, 02:01   #91
konrad127123
 
konrad127123's Avatar
 
Jun 2005

418 Posts
Default

Could you add a feature where it would try various Q's and time them for a short while at the start and so decide on the optimal one to use?
konrad127123 is offline   Reply With Quote
Old 2006-07-05, 23:53   #92
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

115710 Posts
Default

Quote:
Originally Posted by konrad127123
Could you add a feature where it would try various Q's and time them for a short while at the start and so decide on the optimal one to use?
Better than that:

Version 0.3.1 corrects a problem that made 0.3.0 slow when working with base b^Q for large values of Q. The --limit-base switch should not be needed as the default behaviour of simply choosing that largest possible Q should now be optimal in most cases.
geoff is offline   Reply With Quote
Old 2006-07-06, 02:52   #93
konrad127123
 
konrad127123's Avatar
 
Jun 2005

3·11 Posts
Default

Have you tried using values of Q larger than 48? This could possibly increase the sieve speed further.
konrad127123 is offline   Reply With Quote
Old 2006-07-16, 01:57   #94
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

48516 Posts
Default version 0.3.6

Just some changes for the Base 5 project sieve:

sr5sieve now writes factors to factorsNNNN.txt where NNNN is the beginning of the sieve range as a multiple of 10^9, as given in the sr5work.txt file. This should make it easier to submit completed ranges when there are other ranges queued up, as each range gets written to a different file.

'sr5sieve -g K N0 N1' will generate a NewPGen file for the terms N0 <= n < N1 of the sequence K*5^n+/-1 in sr5data.txt, for input to PRP/LLR.

Quote:
Originally Posted by konrad127123
Have you tried using values of Q larger than 48? This could possibly increase the sieve speed further.
(See this thread)
geoff is offline   Reply With Quote
Old 2006-07-17, 01:30   #95
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default Version 0.3.7

This version fixes a bug present in versions 0.3.0 to 0.3.6 that could cause candidates to be lost from the sieve when the sieve range started at n=0 and the term k*b^0+c was prime. (So the bug didn't affect the Base 5 distributed sieve).
geoff is offline   Reply With Quote
Old 2006-07-28, 03:20   #96
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default Version 0.3.14

sr5sieve, the base 5 project sieve, is now in a seperate package available here.

srsieve now recognises sequences in which each term is of the form A^(2^y)+B^(2^y) and only sieves them for factors of the form X*2^(y+1)+1.
geoff is offline   Reply With Quote
Old 2006-08-04, 04:49   #97
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

22058 Posts
Default Version 0.3.18

This version fixes a bug reported by Citrix that caused wrong results for k > 2^31-1.

Also added is the --mod=X,a,b,... command line switch that causes the sieve to only try factors p of the form p = a (mod X), p = b (mod X), etc.

Last fiddled with by geoff on 2006-08-04 at 04:49
geoff is offline   Reply With Quote
Old 2006-08-06, 22:49   #98
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default Version 0.4.1

For sequences k*b^n+c, k and c can now be 64-bit values: 0 < k < 2^64, 0 < |c| < 2^63.

When sieving in base b^Q, Q is now chosen using a different algorithm and should result in a small speedup in many cases, although it is possible some sequences will be slower. Use the --verbose switch to print which base is being used, and the --force-base=X switch to force base b^X to be used if necessary.

(It looks like base 5^60 might now be slightly faster than base 5^48 for the Base 5 Project distributed sieve, so I'll modify sr5sieve once this has had a bit more testing).
geoff is offline   Reply With Quote
Old 2006-08-09, 20:21   #99
axn
 
axn's Avatar
 
Jun 2003

31×163 Posts
Default

Quote:
Originally Posted by geoff
(It looks like base 5^60 might now be slightly faster than base 5^48 for the Base 5 Project distributed sieve, so I'll modify sr5sieve once this has had a bit more testing).
After removing 3 k's for the latest primes, this is what's coming up now:
Split 309 base 5 sequences into 7998 base 5^240 subsequences.:surprised
axn is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Prime Riesel and Sierpinski k robert44444uk Open Projects 587 2016-11-13 15:26
Sierpinski/ Riesel bases 6 to 18 robert44444uk Conjectures 'R Us 139 2007-12-17 05:17
Sierpinski/Riesel Base 10 rogue Conjectures 'R Us 11 2007-12-17 05:08
Sierpinski / Riesel - Base 23 michaf Conjectures 'R Us 2 2007-12-17 05:04
Sierpinski / Riesel - Base 22 michaf Conjectures 'R Us 49 2007-12-17 05:03

All times are UTC. The time now is 09:18.


Sat Jul 17 09:18:53 UTC 2021 up 50 days, 7:06, 1 user, load averages: 2.45, 1.93, 1.73

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.