# Great Internet Mersenne Prime Search

The Great Internet Mersenne Prime Search (GIMPS) is a collaborative project of volunteers who use freely available software to search for Mersenne prime numbers.
GIMPS was founded in 1996 by George Woltman, who also wrote the Prime95 client and its Linux port MPrime. Scott Kurowski wrote the back end PrimeNet server to demonstrate volunteer computing software by Entropia, a company he founded in 1997. GIMPS is registered as Mersenne Research, Inc. with Kurowski as Executive Vice President and board director. GIMPS is said to be one of the first large scale volunteer computing projects over the Internet for research purposes.
As of October 2024, the project has found a total of eighteen Mersenne primes, sixteen of which were the largest known prime number at their respective times of discovery. The largest known prime as of October 2024 is 2$^{136,279,841}$ − 1 (or M$_{136,279,841}$ for short) and was discovered on October 12, 2024, by Luke Durant. On December 4, 2020, the project passed a major milestone after all exponents below 100 million were checked at least once.
From its inception until 2018, the project relied primarily on the Lucas–Lehmer primality test as it is an algorithm that is both specialized for testing Mersenne primes and particularly efficient on binary computer architectures. Before applying it to a given Mersenne number, there was a trial division phase, used to rapidly eliminate many Mersenne numbers with small factors. Pollard's p − 1 algorithm is also used to search for smooth factors.
In 2018, GIMPS adopted a Fermat primality test with basis a=3as an alternative option for primality testing, while keeping the Lucas-Lehmer test as a double-check for Mersenne numbers detected as probable primes by the Fermat test. (While the Lucas-Lehmer test is deterministic and the Fermat test is only probabilistic, the probability of the Fermat test finding a Fermat pseudoprime that is not prime is vastly lower than the error rate of the Lucas-Lehmer test due to computer hardware errors.)
In September 2020, GIMPS began to support primality proofs based on verifiable delay functions. The proof files are generated while the Fermat primality test is in progress. These proofs, together with an error-checking algorithm devised by Robert Gerbicz, provide a complete confidence in the correctness of the test result and eliminate the need for double checks. First-time Lucas-Lehmer tests were deprecated in April 2021.
GIMPS also has sub-projects to factor known composite Mersenne and Fermat numbers.

## History

The project began in early January 1996, with a program that ran on i386 computers. The name for the project was coined by Luke Welsh, one of its earlier searchers and the co-discoverer of the 29th Mersenne prime. Within a few months, several dozen people had joined, and over a thousand by the end of the first year. Joel Armengaud, a participant, discovered the primality of M$_{1,398,269}$ on November 13, 1996. Since then, GIMPS has discovered a new Mersenne prime every 1 to 2 years on average. However, the most recent largest prime found in October 2024 took nearly six years to find.

## Status

As of July 2022, GIMPS has a sustained average aggregate throughput of approximately 4.71 PetaFLOPS (or PFLOPS). In November 2012, GIMPS maintained 95 TFLOPS, theoretically earning the GIMPS virtual computer a rank of 330 among the TOP500 most powerful known computer systems in the world. The preceding place was then held by an 'HP Cluster Platform 3000 BL460c G7' of Hewlett-Packard. As of July 2021 TOP500 results, the current GIMPS numbers would no longer make the list.
Previously, this was approximately 50 TFLOPS in early 2010, 30 TFLOPS in mid-2008, 20 TFLOPS in mid-2006, and 14 TFLOPS in early 2004.

## Software license

Although the GIMPS software's source code is publicly available, technically it is not free software, since it has a restriction that users must abide by the project's distribution terms. Specifically, if the software is used to discover a prime number with at least 100,000,000 decimal digits, the user will only win $50,000 of the $150,000 prize offered by the Electronic Frontier Foundation. On the other hand, they will win $3,000 when discovering a smaller prime not qualifying for the prize.
Third-party programs for testing Mersenne numbers, such as Mlucas and Glucas (for non-x86 systems), do not have this restriction.
GIMPS also "reserves the right to change this EULA without notice and with reasonable retroactive effect."

## Primes found

All Mersenne primes are of the form M$_p$ = 2$^p$ − 1, where p is a prime number itself. The smallest Mersenne prime in this table is 2$^{1398269}$ − 1.
The first column is the rank of the Mersenne prime in the (ordered) sequence of all Mersenne primes; GIMPS has found all known Mersenne primes beginning with the 35th.
| # | Discovery date | Prime M$_p$ | Digits count | Processor |
| 35 | November 13, 1996 | M$_{1398269}$ | 420,921 | Pentium (90 MHz) |
| 36 | August 24, 1997 | M$_{2976221}$ | 895,932 | Pentium (100 MHz) |
| 37 | January 27, 1998 | M$_{3021377}$ | 909,526 | Pentium (200 MHz) |
| 38 | June 1, 1999 | M$_{6972593}$ | 2,098,960 | Pentium (350 MHz) |
| 39 | November 14, 2001 | M$_{13466917}$ | 4,053,946 | AMD T-Bird (800 MHz) |
| 40 | November 17, 2003 | M$_{20996011}$ | 6,320,430 | Pentium (2 GHz) |
| 41 | May 15, 2004 | M$_{24036583}$ | 7,235,733 | Pentium 4 (2.4 GHz) |
| 42 | February 18, 2005 | M$_{25964951}$ | 7,816,230 | Pentium 4 (2.4 GHz) |
| 43 | December 15, 2005 | M$_{30402457}$ | 9,152,052 | Pentium 4 (2 GHz overclocked to 3 GHz) |
| 44 | September 4, 2006 | M$_{32582657}$ | 9,808,358 | Pentium 4 (3 GHz) |
| 45 | September 6, 2008 | M$_{37156667}$ | 11,185,272 | Intel Core 2 Duo (2.83 GHz) |
| 46 | June 4, 2009 | M$_{42643801}$ | 12,837,064 | Intel Core 2 Duo (3 GHz) |
| 47 | August 23, 2008 | M$_{43112609}$ | 12,978,189 | Intel Core 2 Duo E6600 CPU (2.4 GHz) |
| 48 | January 25, 2013 | M$_{57885161}$ | 17,425,170 | Intel Core 2 Duo E8400 @ 3.00 GHz |
| 49 | January 7, 2016 | M$_{74207281}$ | 22,338,618 | Intel Core i7-4790 |
| 50 | December 26, 2017 | M$_{77232917}$ | 23,249,425 | Intel Core i5-6600 |
| 51 | December 7, 2018 | M$_{82589933}$ | 24,862,048 | Intel Core i5-4590T |
| 52 | October 21, 2024 | M$_{136279841}$ | 41,024,320 | Nvidia A100 |
$^{^†}$ As of November 14, 2023, 65,723,341 is the largest exponent below which all other prime exponents have been checked twice, so it is not verified whether any undiscovered Mersenne primes exist between the 48th (M$_{57885161}$) and the 51st (M$_{82589933}$) on this chart; the ranking is therefore provisional. Furthermore, 114,055,847 is the largest exponent below which all other prime exponents have been tested at least once, so all Mersenne numbers below the 51st (M$_{82589933}$) have been tested.
$^{^‡}$ The number M$_{136279841}$ has 41,024,320 decimal digits. To help visualize the size of this number, if it were to be saved to disk, the resulting text file would be nearly 42 megabytes long (most books in plain text format are under two megabytes). A standard word processor layout (50 lines per page, 75 digits per line) would require 10,940 pages to display it. If one were to print it out using standard printer paper, single-sided, it would require approximately 22 reams (22 × 500 = 11000 sheets) of paper.
Whenever a possible prime is reported to the server, it is verified first (by one or more independent tests on different machines) before being announced. The importance of this was illustrated in 2003, when a false positive was reported to the server as being a Mersenne prime but verification failed.
The official "discovery date" of a prime is the date that a human first noticed the result for the prime, which may differ from the date that the result was first reported to the server. For example, M$_{74207281}$ was reported to the server on September 17, 2015, but the report was overlooked until January 7, 2016.