![]() |
|
|
#12 | |
|
Jun 2003
31·163 Posts |
Quote:
EDIT:- Meanwhile, the sieve is currently at p=1.1 billion Last fiddled with by axn on 2006-04-30 at 13:22 |
|
|
|
|
|
|
#13 |
|
Mar 2003
New Zealand
100100001012 Posts |
Thanks for all the feedback.
I have posted a new version, but I haven't been online since I posted version 0.0.1 and so I haven't addressed any of the bugs or suggestions above, but I will look at them over the next few days. Version 0.0.3 has 64 bit arithmetic which takes over once the 32 bit limit is reached, but it currently uses GMP to do the 64 bit mulmod which is quite slow. A new file format is used which writes all candidates in one file: use the --newpgen switch to write NewPGen format files to pass to prp. Note that I only have 32 bit Intel machines running Linux, so any help getting it to work and tested on other platforms will be much appreciated. Also note that this is a very early development version, and I am still learning as I go, so there may well be serious bugs. I wouldn't put 100% trust in the results unless they agree with NewPGen's. |
|
|
|
|
|
#14 | |
|
Mar 2003
New Zealand
13·89 Posts |
Quote:
For those interested in the algorithm, that main improvement compared to sieving one candidate sequence at a time is that the baby steps part of the algorithm is independent of the number of candidates in the sieve, and increasing the number of (cheap) baby steps allows the number of (expensive) giant steps to be reduced. I think the speed is mainly proportional to sqrt(kn), where k is the number of candidate sequences and n the range of n values. For sieving one candidate at a time las we have been doing, speed is proportional to k sqrt(n). |
|
|
|
|
|
|
#15 | |
|
Jun 2003
31·163 Posts |
Quote:
|
|
|
|
|
|
|
#16 | |
|
Mar 2003
New Zealand
115710 Posts |
This version fixes the next_bit() segfault bug and implements the hash function improvements reported by rogue. Also simple timing information is reported (--report option).
I will work on a proper benchmarking suite so that we can measure the effects of changes ant test out different compile time parameters. Quote:
Nevertheless it should be fine to use it now to help eliminate as many candidate k as possible, but when we start combined sieving with a stable version we should consider restarting whatever k are left from scratch. |
|
|
|
|
|
|
#17 | |
|
Jun 2003
10011101111012 Posts |
Quote:
|
|
|
|
|
|
|
#18 |
|
"Jason Goatcher"
Mar 2005
3·7·167 Posts |
Just so you guys know, the guy working on the new sieve client(not the one in this thread) does intend to make it base-5 compatible. When that will actually happen, I don't know, but it's in the works.
Mildly off-topic: I've been told that the resulting code will even be portable to the Playstation Portable. Woo-hoo!!! |
|
|
|
|
|
#19 | |
|
"Mark"
Apr 2003
Between here and the
11·577 Posts |
Quote:
|
|
|
|
|
|
|
#20 |
|
Jul 2005
2×193 Posts |
I'm trying to find the time to write up some things about how proth_sieve works and whether the differences (BSGS is implemented in a different way) would be useful for srsieve.
If only I had more time... |
|
|
|
|
|
#21 | |
|
Mar 2003
New Zealand
13·89 Posts |
I have added assembler versions of mulmod32, powmod32 and mulmod62 supplied by rogue. mulmod32 is twice as fast and mulmod62 five times faster than the previous versions.
A --benchmark option times some of these critical functions. On my P3/450, srsieve 0.0.5 with just one base 5 candidate in the sieve is now about 25% faster than NewPGen for p above 2^32, and about 50% faster for smaller p. Quote:
Last fiddled with by geoff on 2006-05-04 at 03:49 |
|
|
|
|
|
|
#22 |
|
"Robert Gerbicz"
Oct 2005
Hungary
22·7·53 Posts |
I've posted a speedup to seventeenorbust forum some years ago. There the base=2 but you can replace this by base=b. See my post at: http://www.free-dc.org/forum/showthr...254#post=29254
Implementing this they have gotten an about 3-4 times faster sieve. |
|
|
|
![]() |
| Thread Tools | |
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 |