Mp = 2p − 1
The Hunt for Mersenne Primes
Double again and again, subtract one, and you might find the largest known prime.
Run the prime test
Will it hit zero?
Start at 4. Square the result, subtract 2 and keep the remainder after dividing by Mₚ. For odd prime p, Mₚ is prime exactly when the remainder is zero after p − 2 steps.
The exponent is the first filter
If p = ab with a and b greater than 1, the geometric sum splits Mₚ into two smaller whole numbers.
2ab − 1 = (2a − 1)(1 + 2a + … + 2a(b−1))
Even a prime exponent can give a composite number. Try p = 11.
M11 = 2047 = 23 × 89
The record staircase
Mersenne primes have dominated the record since the 1950s. Since late 1996, every new record in this snapshot came from GIMPS, the Great Internet Mersenne Prime Search.
Decimal digits · logarithmic scale
All 52 known Mersenne exponents
Discovery years follow the GIMPS catalog. Early dates are approximate. The entries after the 48th known prime are GIMPS milestones. Ranks through 51 were verified by September 2026. The October 2024 discovery remains provisionally ranked 52nd because some smaller candidates still await verification.
| Exponent p | Discovery year | Digits |
|---|
Primes make perfect numbers
A perfect number equals the sum of its positive divisors smaller than itself. Euclid and Euler together showed that every even perfect number has the form below, and that the form always gives a perfect number when Mₚ is prime.
2p−1(2p − 1)
No odd perfect numbers
Mathematicians conjecture that no odd perfect number exists. The question remains open.
How big is one prime?
Set the print density for the October 2024 record. Then zoom in on a smaller Mersenne prime and read every digit.
The record in print
Each spine represents one book. Partial pages and books round up.
Digit wall
For mathematicians
Lucas–Lehmer starts with s₀ = 4 and iterates sᵢ₊₁ ≡ sᵢ² − 2 (mod Mₚ), using least nonnegative residues. For odd prime p the criterion is sₚ₋₂ = 0. The plot divides residues by Mₚ, and the orbit maps their square roots to radii so equal-area bands cover equal residue ranges.
For the converse, write an even perfect number as 2ᵏm with m odd. Multiplicativity of the divisor-sum function gives (2ᵏ⁺¹ − 1)σ(m) = 2ᵏ⁺¹m. The coprime factors imply m = d(2ᵏ⁺¹ − 1) and σ(m) = m + d. If d > 1, the divisor 1 would make σ(m) larger, so d = 1 and m is prime.
Digit counts use ⌊p log₁₀ 2⌋ + 1. The record chart shows year-end values and includes the non-Mersenne records at year end in 1951 and 1989.