![]() |
|
|
#23 | |
|
"Dave"
Sep 2005
UK
23×347 Posts |
Quote:
By comparison letting NewPGen do the split at p=1e9 took 42.5 hours to 1e9 and another 10.5 hours to go from 1e9 to 100e9. |
|
|
|
|
|
|
#24 |
|
"Dave"
Sep 2005
UK
23×347 Posts |
|
|
|
|
|
|
#25 |
|
Jun 2003
546410 Posts |
I've got a preliminary sieve cooked up. Currently it sieves a 1T range to 50e6 in around 1.2 hrs (C2D 2 GHz. Linux 64-bit).
Undergoing testing. Once testing checks out, assuming there is interest, I will post the code here. |
|
|
|
|
|
#26 |
|
May 2010
499 Posts |
Wow, that's pretty fast. Were you using one core or both of them?
|
|
|
|
|
|
#27 |
|
I quite division it
"Chris"
Feb 2005
England
31·67 Posts |
@axn
Brilliant! I assume someone will be able to port it to Windows, 64 bit? Last fiddled with by Flatlander on 2010-06-14 at 12:28 |
|
|
|
|
|
#28 | |
|
Jun 2003
546410 Posts |
Quote:
It's written in pascal. Will compile under free pascal (they have 32-bit & 64-bit compilers for windows and linux) |
|
|
|
|
|
|
#29 |
|
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
614110 Posts |
It looks to me that pascal is not as fast as c++.
http://shootout.alioth.debian.org/u32/pascal.php |
|
|
|
|
|
#30 | |
|
Jun 2003
23×683 Posts |
Quote:
The program is simple enough to be ported to any language without much trouble -- but unless you're an assembly expert, you'll find little gain. EDIT:- More gains can be made from a more complex algorithm. However, the current gains (vis-a-vis Newpgen) are good enough that I can't justify spending more time on performance. My current focus is on increasing the p limit, so that the time spend on sieving by Newpgen is minimized. Last fiddled with by axn on 2010-06-14 at 17:13 |
|
|
|
|
|
|
#31 |
|
"Dave"
Sep 2005
UK
23×347 Posts |
Are you sieving for both Twins and Sophie Germains?
|
|
|
|
|
|
#32 |
|
Jun 2003
23×683 Posts |
|
|
|
|
|
|
#33 |
|
Jun 2003
23×683 Posts |
Ok. Here's the source code.
Currently sieves 1T upto p=100e6 in 50 minutes. Experiment with tweaking the two parameters in the file. If you can't download Free Pascal to compile it, I can try compiling for Win64/Linux64 and post the binaries. EDIT:- Could use more testing. Bug reports welcome. Last fiddled with by axn on 2010-06-14 at 23:38 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perpetual benchmark thread... | Xyzzy | Hardware | 897 | 2023-06-15 13:46 |
| Hardware Benchmark Jest Thread for 100M exponents | joblack | Hardware | 285 | 2022-08-06 21:50 |
| LLR benchmark thread | Oddball | Riesel Prime Search | 5 | 2010-08-02 00:11 |
| sr5sieve Benchmark thread | axn | Sierpinski/Riesel Base 5 | 25 | 2010-05-28 23:57 |
| New Sieve Thread Discussion | Citrix | Prime Sierpinski Project | 15 | 2005-08-29 13:56 |