Mersenne Prime Freeware

"Share and Enjoy"

The Amdahl 6's motto

Mirror sites

For increased performance, this page has been mirrored. Please choose the site closest to you for the best performance.

fractal.mta.ca Michael Taylor, Eastern Canada, master site
cringe.ne.mediaone.net Ethan M. O'Connor, Eastern US mirror
www.scruznet.com Luke Welsh, Northern California mirror
www2.tripnet.se Lennart Grebelius, Sweden, European mirror

Software

Software for Pentium & 486 processors

Go to the GIMPS homepage. George Woltman's programs are the fastest on Intel chips running Windows 3.x, Win95, WinNT, OS/2, Linux and UNIXWARE.

lucas.c on users.delta.com

This is Dr. Richard Crandall's original Mersenne number testing program. Written in generic 'C'. George Woltman's lightening fast Pentium program has its roots in this code.

Reported to be OK

mers on ftp.delta.com

mers 4.1 is a collection of programs guarded by Will Edgington, the Abbé of Revision Control. This is most useful for machines not running MS-Windows (NT (intel), 95, or 3.1), OS/2, i386 Linux, or PowerPC-based MacOS. Because some WWW browsers insist on using binary mode when ftp'ing files, Will has packaged mers four different ways:
README HTML file about mers package
mers.shar.gz binary 'gunzip mers.shar; unshar mers.shar'
mers.shar ascii 'unshar mers.shar' or 'sh mers.shar'
mers.tar.gz binary 'tar xzf mers.tar' (FSF/GNU tar) or 'gunzip mers.tar; tar xf mers.tar'
Windows users: WinZIP can read this file. Rename it to 'mers.tgz'.
mers.tar binary 'tar xf mers.tar'
Windows users: WinZIP can read this file.

M3 on nigel.mae.cwru.edu
M3 stands for Mayer, Montgomery and Mersenne

This Mersenne-related software package maintained by Ernst W. Mayer. As implied by the server name, this is the Mersenne-testing package that "goes to eleven." Contains a complete set of programs for Mersenne number primality testing and factoring:

A backup site is located on www.scruznet.com, and ftp.scruznet.com, space curtesy of Luke Welsh.

maclucas.sit.hqx for PowerMacs

John Sweeney has written MacLucas V1.4 available in StuffIt! format from the GIMPS free software page. Source code for v1.4 and "Wisdom" for MacLucas is available from Will Edgington's Mersenne page.

OS/2Prime on www.bright.net

by Marcel van de Vusse (mvusse@bright.net) This is an OS/2 port of George Woltman's Linux prime v1.1. Second preliminary release for OS/2. It allows you to change the priority at which the program is running. From Legacy Software on bright.net.

ecm3 on ftp.netdoor.com

Compiled for DOS by Conrad Curry <cwcurry@whale.st.usm.edu> Based on ecm3 version 4.1 from the mers package, compiled with DJGPP.

An ECM (elliptic curve method) factorer that uses freeLIP's ECM functions to attempt to find factors of small Mersenne numbers, which works for composite as well as prime exponents, though it does not always completely factor composite exponent Mersennes. Based on code by Eric Prestemon.

mmfac on ftp.netdoor.com

Compiled for DOS by Conrad Curry a DOS program (with source) for factoring M( M(p) ) numbers based on mmtrial in the mers package.

lucas.cal

Landon Noll's implementation of The Amdahl 6 method to find humongous Mersenne-like primes. Read Landon's Notes on his homepage. Needs the calc package (below) on this page.

genprost.tgz on www.crl.com

Yuri Sorkin's program that generates all primes < 2^31. Very fast. Written in C. Takes only 3 minutes on a 486 DX2/80 to generate all 7,603,553 primes less than 2^27. ~35 minutes for all p < 2^31. Yuri is working on a faster and more versatile version of genprost.

prime on ftp.cray.com

FORTRAN and C versions of a program to compute Mersenne numbers in decimal so that they may be printed. The algorithm is credited to Slowinski of CRI.

pzilla.for on scruznet.com

FORTRAN program by Walt Colquitt and Luke Welsh that found M110503. Optimized for vector machines (supercomputers).

oiler.for on scruznet.com

FORTRAN program by Luke Welsh to factor Mersenne numbers. Written for vector machines (supercomputers). Named 'oiler' instead of 'euler' because it ran on the NEC SX-2 in Houston, Texas. There are better algorithms than the ones employed in this program.

primeos2 2.1.1 and primeemx 2.1.1 on www.dds.nl

Ports by Michiel van Loon of George Woltman's mprime to OS/2 and the EMX 32-bit DOS expander. To use the EMX version, you need the EMX runtime (v0.9c).

Related files

large.zip on fractal.mta.ca

Mike McCarty's program to compute and print Mersenne numbers in decimal. Knowing a good thing when he sees it, Mike calls Mikko Tommila's apfloat package (below). This program is really fast. large.zip contains:
large.cc C++ source for the apfloat package, runs in O(n log n) time, where n is the number of digits in the prime
largefmt.c a little program to format numbers
1000.dat test output for 2^1000 - 1
large.c computes large primes, algorithm O(n^2) where n is the number of digits in the prime (written many moons ago)

mprimescripts.tar on lucy.staff.umkc.edu

Scripts written by David Nicol to automate a net-connected Linux machine's participation in GIMPS. Requires perl, ash, mail, lynx, and George Woltman's mprime packages.
mprimescripts.tar tar archive from lucy.staff.umkc.edu
mprimescripts.tgz tar archive, gzipped from lucy.staff.umkc.edu
mprimescripts.tar tar archive from fractal.mta.ca
mprimescripts.tgz tar archived, gzipped from fractal.mta.ca

extract.c on ftp.delta.>

Transfer interrupted!