Hubbry Logo
search button
Sign in
Great Internet Mersenne Prime Search
Great Internet Mersenne Prime Search
Comunity Hub
arrow-down
History
arrow-down
starMore
arrow-down
bob

Bob

Have a question related to this hub?

bob

Alice

Got something to say related to this hub?
Share it here.

#general is a chat channel to discuss anything related to the hub.
Hubbry Logo
search button
Sign in
Great Internet Mersenne Prime Search
Community hub for the Wikipedia article
logoWikipedian hub
Welcome to the community hub built on top of the Great Internet Mersenne Prime Search Wikipedia article. Here, you can discuss, collect, and organize anything related to Great Internet Mersenne Prime Search. The ...
Add your contribution
Great Internet Mersenne Prime Search
Great Internet Mersenne Prime Search (GIMPS)
Logo
Software usedprime95 (CPU), GpuOwl/PRPLL, Mlucas, mfaktc/mfakto, CUDALucas (GPU)
Total users280,000
Total hosts2,900,000[1]
Websitemersenne.org Edit this at Wikidata

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.[2]

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 2136,279,841 − 1 (or M136,279,841 for short) and was discovered on October 12, 2024, by Luke Durant,[3][4] and оn June 18, 2025, the project passed a milestone after all exponents below 136,279,841 were checked at least once.[5]

Algorithm

[edit]

From its inception until 2018, the project relied primarily on the Lucas–Lehmer primality test (LL)[6] 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. The variant of LL used in the main implementation (Prime95) is specifically based on irrational base discrete weighted transform with double-precision floating-point numbers, which provide a efficient way to square a large number modulo 2P-1.[7]

Special care is taken to make sure that the use of floating-point numbers does not introduce errors into the LL calculation. The program verifies that the round-off error is no greater than 0.4 every 128 iterations, or if the exponent being tested is within 0.5% of the maximum exponent size that can be handled by the size of FFT in use (or if requested using a special option), at every single iteration. Every 12 hours the program runs an additional error check based on the Jacobi symbol,[8] with 50% chance of catching an error. On top of these, each completed LL calculation is repeated by a different hardware for "double-checking". Based on historical double-check data, each LL calculation without any serious error reported had an error rate of 1.5%; those with at least one serious error reported had an error rate of 50%.[7]

In 2018, GIMPS adopted a Fermat primality test with basis a=3[a] as an alternative option for primality testing,[10] while keeping the Lucas–Lehmer test as a double-check for Mersenne numbers detected as probable primes by the Fermat test.[11] This new test is called PRP (probable prime) in GIMPS parlance. Using a method devised by Robert Gerbicz, GIMPS can be "99.999+%" sure that a PRP result is generated correctly.[7] As a result, even though 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.[12][better source needed]

In September 2020,[13][14][15] GIMPS began to support primality proofs based on verifiable delay functions countributed by Krzysztof Pietrzak.[16] The proof files are generated while the Fermat primality test is in progress. These proofs, together with Gerbicz's error-checking algorithm (see above), provide a complete confidence in the correctness of the test result and eliminate the need for double checks (check of proof could be run in 1/100 of the time of the original Fermat computation).[7] First-time Lucas–Lehmer tests were deprecated in April 2021, leaving LL to only be used on probable primes found by the Fermat test.[17] PRP and LL are very similar in terms of runtime;[18] the preference comes from a higher confidence in PRP results.[17]

GIMPS also has sub-projects to factor known composite Mersenne and Fermat numbers. These use the elliptic-curve factorization method and Williams's p + 1 algorithm.[19][b]

History

[edit]

The project began in early January 1996,[20][21] with a program that ran on i386 computers.[22][23] The name for the project was coined by Luke Welsh, one of its earlier searchers and the co-discoverer of the 29th Mersenne prime.[24] Within a few months, several dozen people had joined, and over a thousand by the end of the first year.[23][25] Joel Armengaud, a participant, discovered the primality of M1,398,269 on November 13, 1996.[26] 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

[edit]

As of July 2022, GIMPS has a sustained average aggregate throughput of approximately 4.71 PetaFLOPS (or PFLOPS).[27] In November 2012, GIMPS maintained 95 TFLOPS,[28] theoretically earning the GIMPS virtual computer a rank of 330 among the TOP500 most powerful known computer systems in the world.[29] The preceding place was then held by an 'HP Cluster Platform 3000 BL460c G7' of Hewlett-Packard.[30] 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

[edit]

Prime95

[edit]

The primary software used by GIMPS is Prime95, which implements all algorithms for an x86 or x86-64 CPU: trial factoring (usually left to GPUs), PRP, P-1, P+1, ECM, and PRP certification. Although the Prime95 software's source code is publicly available,[31] technically it is not free software, since it has a restriction that users must abide by the project's distribution terms.[32] 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.[32][33]

GIMPS also "reserves the right to change this EULA without notice and with reasonable retroactive effect."[32]

Third-party software

[edit]

The third-party software do not share the same restriction as Prime95. They can be used to join GIMPS using a program called AutoPrimeNet, which fetches tasks from GIMPS and send back the results. Available software include:[34]

  • Mlucas, which implements LL, Fermat PRP, and Pépin's test. Shipped with MFactor for trial-factoring. Able to run on x86, x86-64, ARM, and most other CPU architectures. Uses double-precision IBDWT.[35]
  • Glucas, outdated implementation of LL for x86 and non-x86 CPUs. Uses double-precision IBDWT.
  • GPUowl and PRPLL, OpenCL programs for running PRP and LL intended for GPUs. Uses double-precision IBDWT.
  • mfaktc (CUDA) / mfakto (OpenCL), programs for GPU trial factoring using 32-bit integer arithmetic.
  • CUDALucas, outdated implementation of LL for CUDA. Uses double-precision IBDWT.
  • PrMers/Marin, implements LL and PRP. Uses IBDWT with number-theoretic transform over Z/(264 - 232 + 1)Z using 64-bit integer arithmetic.

In addition, PrimeNet accepts other forms of data contributions from projects such as TJOAI (Tadashi Taura's custom software to trial-factor many Mersenne numbers at once).

Primes found

[edit]

All Mersenne primes are of the form Mp = 2p − 1, where p is a prime number itself. The smallest Mersenne prime in this table is 21398269 − 1.

The first column is the rank of the Mersenne prime in the (ordered) sequence of all Mersenne primes;[36] GIMPS has found all known Mersenne primes beginning with the 35th.

# Discovery date Prime Mp Digits count Processor Method
35 November 13, 1996 M1398269 420,921 Pentium (90 MHz) Prime95 LL
36 August 24, 1997 M2976221 895,932 Pentium (100 MHz) Prime95 LL
37 January 27, 1998 M3021377 909,526 Pentium (200 MHz) Prime95 LL
38 June 1, 1999 M6972593 2,098,960 Pentium (350 MHz) Prime95 LL
39 November 14, 2001 M13466917 4,053,946 AMD T-Bird (800 MHz) Prime95 LL
40 November 17, 2003 M20996011 6,320,430 Pentium (2 GHz) Prime95 LL
41 May 15, 2004 M24036583 7,235,733 Pentium 4 (2.4 GHz) Prime95 LL
42 February 18, 2005 M25964951 7,816,230 Pentium 4 (2.4 GHz) Prime95 LL
43 December 15, 2005 M30402457 9,152,052 Pentium 4 (2 GHz overclocked to 3 GHz) Prime95 LL
44 September 4, 2006 M32582657 9,808,358 Pentium 4 (3 GHz) Prime95 LL
45 September 6, 2008 M37156667 11,185,272 Intel Core 2 Duo (2.83 GHz) Prime95 LL
46 June 4, 2009 M42643801 12,837,064 Intel Core 2 Duo (3 GHz) Prime95 LL
47 August 23, 2008 M43112609 12,978,189 Intel Core 2 Duo E6600 CPU (2.4 GHz) Prime95 LL
48 January 25, 2013 M57885161 17,425,170 Intel Core 2 Duo E8400 @ 3.00 GHz Prime95 LL
49 January 7, 2016 M74207281 22,338,618 Intel Core i7-4790 Prime95 LL
50[†] December 26, 2017 M77232917 23,249,425 Intel Core i5-6600 Prime95 LL
51[†] December 7, 2018 M82589933 24,862,048 Intel Core i5-4590T Prime95 LL
52[†] October 21, 2024 M136279841[‡] 41,024,320 Nvidia A100 Gpuowl PRP

^ † As of August 30, 2025, 75,553,609 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 49th (M74207281) and the 52nd (M136279841) on this chart; the ranking is therefore provisional. Furthermore, 138,249,913 is the largest exponent below which all other prime exponents have been tested at least once, so all Mersenne numbers below the 52nd have been tested.[37]

^ ‡ The number M136279841 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 = 11,000 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.[38]

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, M74207281 was reported to the server on September 17, 2015, but the report was overlooked until January 7, 2016.[39]

See also

[edit]

References

[edit]
  1. ^ a=2 wouldn't work as all Mersenne numbers are 2-pseudoprimes.[9]
  2. ^ For a rationale behind this search, consult the related Cunningham Project.
  1. ^ "PrimeNet Statistics". www.mersenne.org. Retrieved 6 April 2025.
  2. ^ "Volunteer computing". BOINC. Archived from the original on 18 December 2021. Retrieved 25 December 2021.
  3. ^ "GIMPS Discovers Largest Known Prime Number: 2136,279,841 − 1". Mersenne Research, Inc. 21 October 2024. Retrieved 21 October 2024.
  4. ^ "GIMPS Project Discovers Largest Known Prime Number: 282,589,933-1". Mersenne Research, Inc. 21 December 2018. Retrieved 21 December 2018.
  5. ^ "GIMPS Milestones Report". Mersenne.org. Mersenne Research, Inc. Retrieved 5 December 2020.
  6. ^ What are Mersenne primes? How are they useful? - GIMPS Home Page
  7. ^ a b c d "GIMPS - The Math - PrimeNet". www.mersenne.org.
  8. ^ Prime95 distribution, undoc.txt
  9. ^ https://www.mersenneforum.org/node/22795
  10. ^ "GIMPS - the Math - PrimeNet".
  11. ^ "mersenneforum.org - View Single Post - Getting reliable LL from unreliable hardware". mersenneforum.org. Retrieved 2022-10-05.
  12. ^ "mersenneforum.org - View Single Post - Getting reliable LL from unreliable hardware". mersenneforum.org. Retrieved 2022-10-05.
  13. ^ "Announcements". GIMPS, the Great Internet Mersenne Prime Search. Archived from the original on 2021-08-14. Retrieved 1 September 2021.
  14. ^ "What's new". Retrieved 1 September 2021.
  15. ^ "Prime95 v30.3". Retrieved 1 September 2021.
  16. ^ Woltman, George (2020-06-16). "The Next Big Development for GIMPS". GIMPS forum. Retrieved 20 May 2022.
  17. ^ a b Woltman, George (2021-04-08). "First time LL is no more". Retrieved 19 May 2022.
  18. ^ Preda, Mihai (22 August 2025). "preda/gpuowl".
  19. ^ "PrimeNet ECM Progress". Retrieved 20 May 2022.
  20. ^ The Mersenne Newsletter, Issue #9. Retrieved 2011-10-02. Archived 2012-02-06 at the Wayback Machine
  21. ^ "mersenneforum.org - View Single Post - Party on! GIMPS turns 10!!!". www.mersenneforum.org. Retrieved 22 December 2018.
  22. ^ Woltman, George (February 24, 1996). "The Mersenne Newsletter, issue #1" (txt). Great Internet Mersenne Prime Search (GIMPS). Retrieved 2009-06-16.
  23. ^ a b Woltman, George (January 15, 1997). "The Mersenne Newsletter, issue #9" (txt). GIMPS. Retrieved 2009-06-16.
  24. ^ The Mersenne Newsletter, Issue #9. Retrieved 2009-08-25.
  25. ^ Woltman, George (April 12, 1996). "The Mersenne Newsletter, issue #3" (txt). GIMPS. Retrieved 2009-06-16.
  26. ^ Woltman, George (November 23, 1996). "The Mersenne Newsletter, issue #8" (txt). GIMPS. Retrieved 2009-06-16.
  27. ^ PrimeNet Activity Summary, GIMPS, retrieved 2022-07-19
  28. ^ PrimeNet Activity Summary, GIMPS, retrieved 2012-04-05
  29. ^ "TOP500 - November 2012". Archived from the original on 5 October 2018. Retrieved 22 November 2012.
  30. ^ TOP500 per November 2012; HP BL460c with 95.1 TFLOP/s (R max)."TOP500 - Rank 329". Retrieved 22 November 2012.
  31. ^ "Software Source Code". Mersenne Research, Inc. Retrieved March 16, 2013.
  32. ^ EFF Cooperative Computing Awards, Electronic Frontier Foundation, 29 February 2008, retrieved 2011-09-19
  33. ^ "AutoPrimeNet - download.mersenne.ca". download.mersenne.ca.
  34. ^ "Mlucas README "(The not-PC-only version ;)"".
  35. ^ "GIMPS List of Known Mersenne Prime Numbers". Mersenne Research, Inc. Retrieved 2018-01-03.
  36. ^ "GIMPS Milestones". Mersenne Research, Inc. Retrieved 2020-11-30.
  37. ^ "M40, what went wrong? - Page 11 - mersenneforum.org". mersenneforum.org. Retrieved 22 December 2018.
  38. ^ "GIMPS Project Discovers Largest Known Prime Number". January 19, 2016.
[edit]