Mersenne prime testing done quickly!
stemprime $number to test whether 2^$number-1 is prime.
stemprime --help to view usage and help info
stemprime N0 N1 N2 N3 ... to test a series of exponents, in parallel (i.e.
stemprime 31 67 127 128 would test 2^31-1, 2^67-1, 2^127-1, and 2^128-1).
||N/A||Prints version and name info about the program|
||N/A||Prints help and usage information|
||N/A||Prints authors name and email addresses|
||number||Sets verbosity level (3 prints all, 0 is only neccesary info)|
||string||Where to store and restore from progress files|
||N/A||If enabled, no checkpoint files are used|
|number||The exponent to perform LL test on M
./configure && make && make install
stemprime --help to view the help info.
An example usage would be like:
stemprime 31 to test 2^31-1
You will need autotools, GMP, , and pthreads.
And, finally, install like any other.
./configure && make
The binary is
||Builds a static executable (for distributing)||Doesn't always work on macOS|
||Gives info for finding library
||See the next section|
Non Standard Locations
If you have installed GMP, cargs, or pthreads in a non standard location, you can modify the configure step like so:
./configure --with-gmp=GMPDIR --with-cargs=CARGSDIR ...
GMPDIR should be what you set
--prefix while configuring GMP, CARGSDIR should be what you set
--prefix to while configuring cargs, etc.
make like the examples give, and you should be good!