View Single Post
Old 2007-03-13, 00:31   #9
geoff's Avatar
Mar 2003
New Zealand

13·89 Posts

Originally Posted by jasong View Post
also, could someone show me how to make it work for a specific base? I've been able to build srsieve, but not sr5sieve.
The sr5sieve source is in a seperate archive from the srsieve source, but the compilation instructions are similar. Running `make' will compile a binary that should work on the host machine. If you have the GMP libraries installed, run `make check' too.

By default the base is 5. To compile for base 2, edit sr5sieve.h and change the line `#define BASE 5' to `#define BASE 2'. The executable will be called sr5sieve whatever base was set, so best to rename it immediately to avoid confusion :-)

sr5sieve doesn't use the sqrtl() function, so hopefully no need for further editing.
geoff is offline   Reply With Quote