mersenneforum.org  

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

Reply
 
Thread Tools
Old 2006-06-16, 17:32   #78
axn
 
axn's Avatar
 
Jun 2003

31×163 Posts
Default

Quote:
Originally Posted by geoff
I did mean a 60% throughput improvement, but I only tested on my P4. The improvement is mainly due to the hashtable being smaller and staying in cache longer, so the actual improvement will depend a lot on cache size.
Well then, you outdid yourself. 3400 p/sec to 8000 p/sec = 135% improvement on my Athlon!

Last fiddled with by axn on 2006-06-16 at 17:33
axn is online now   Reply With Quote
Old 2006-06-20, 05:14   #79
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default

Quote:
Originally Posted by axn1
Well then, you outdid yourself. 3400 p/sec to 8000 p/sec = 135% improvement on my Athlon!
Great :-) I think what has happened in this case is that the main table now fits entirely in your Athlon's L1 cache. If you start srsieve with the --verbose option it will report the hashtable size, multiply that by two to get the size in bytes of the main table. A lot more primes will have to be found before it will fit in the P4's L1 cache.
geoff is offline   Reply With Quote
Old 2006-06-20, 17:58   #80
axn
 
axn's Avatar
 
Jun 2003

31·163 Posts
Default

Quote:
Originally Posted by geoff
Great :-) I think what has happened in this case is that the main table now fits entirely in your Athlon's L1 cache. If you start srsieve with the --verbose option it will report the hashtable size, multiply that by two to get the size in bytes of the main table.
The -v option reports a hash size of 2^15. So the hash table size should be 64KB which should fit almost entirely within the Athlon's 64KB L1 Data cache.
axn is online now   Reply With Quote
Old 2006-06-26, 04:04   #81
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default New in version 0.1.24

--twin option to sieve for twin primes.

Support for NewPGen type 19/20 sieve files (b^n+/-k). Use LLR only for these sieves, PRP doesn't work.

mulmod/powmod assembler for the PPC, thanks rogue for this code.
geoff is offline   Reply With Quote
Old 2006-06-26, 04:07   #82
Citrix
 
Citrix's Avatar
 
Jun 2003

2·7·113 Posts
Default

If someone wanted to work on the brier problem, can your sieve support it?
ie sieve k*2^n+1 and k*2^n-1 together.

edit: Not that I want it implemented, I was just curious if your program supported such a form.

Last fiddled with by Citrix on 2006-06-26 at 04:37
Citrix is offline   Reply With Quote
Old 2006-06-29, 04:31   #83
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

22058 Posts
Default

Quote:
Originally Posted by Citrix
If someone wanted to work on the brier problem, can your sieve support it?
ie sieve k*2^n+1 and k*2^n-1 together.
Yes this will work. The command to sieve just 3*2^n+/-1 for 1 <= n <= 1 million would be:

$ srsieve --twin --nmin 1 --nmax 1e6 "3*2^n-1" "3*2^n+1"
geoff is offline   Reply With Quote
Old 2006-06-29, 22:11   #84
fetofs
 
fetofs's Avatar
 
Aug 2005
Brazil

2·181 Posts
Default

Quote:
Originally Posted by geoff
Yes this will work. The command to sieve just 3*2^n+/-1 for 1 <= n <= 1 million would be:

$ srsieve --twin --nmin 1 --nmax 1e6 "3*2^n-1" "3*2^n+1"
But I imagine a "twin" function will eliminate the +1 part when the -1 is eliminated, or vice-versa (unless your program is not as optimized as it minimally should be).
fetofs is offline   Reply With Quote
Old 2006-06-30, 08:26   #85
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

5CC16 Posts
Default

Quote:
Originally Posted by fetofs
But I imagine a "twin" function will eliminate the +1 part when the -1 is eliminated, or vice-versa (unless your program is not as optimized as it minimally should be).
I think the best method for that to sieve (k*2^n+1)*(k*2^n-1)=(k*k)*4^n-1 so base=4 and multiplier=k*k and c=-1.
R. Gerbicz is offline   Reply With Quote
Old 2006-07-03, 03:12   #86
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

115710 Posts
Default

Quote:
Originally Posted by R. Gerbicz
I think the best method for that to sieve (k*2^n+1)*(k*2^n-1)=(k*k)*4^n-1 so base=4 and multiplier=k*k and c=-1.
I didn't think of that :-) There is not really much point using srsieve for sieving twins then.
geoff is offline   Reply With Quote
Old 2006-07-04, 15:22   #87
masser
 
masser's Avatar
 
Jul 2003
wear a mask

165810 Posts
Default

We need a prover code for srsieve; just found 43018*5^279020+1 and would like to credit geoff's wonderful program.
masser is offline   Reply With Quote
Old 2006-07-04, 17:43   #88
axn
 
axn's Avatar
 
Jun 2003

116758 Posts
Default

Quote:
Originally Posted by masser
We need a prover code for srsieve; just found 43018*5^279020+1 and would like to credit geoff's wonderful program.
Absolutely. Have you tried contacting Chris Caldwell?

Last fiddled with by axn on 2006-07-04 at 19:07
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:13.


Sat Jul 17 09:13:31 UTC 2021 up 50 days, 7 hrs, 1 user, load averages: 1.42, 1.67, 1.61

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.