An extension of the topic of primes and powers. Numbers of the form 2ᵖ−1 are sometimes prime (for prime p) — and it is among these that the record-breaking large known primes are found, thanks to a fast primality test. Marin Mersenne gave a list of them in 1644. The modern GIMPS project searches for ever larger ones (the largest, from 2024, has over 41 million digits).

I'll give you an exponent p — decide whether is prime. Note: a prime p does not guarantee a prime Mₚ.
What just happened?
Mersenne numbers are numbers of the form . For some exponents this number is prime — we then call it a Mersenne prime:
Examples: , , , — all prime. But is already composite, even though 11 is prime.
The key property (the invariant):
For to be prime, the exponent itself must be prime:
The implication works only one way. If were composite, then would divide — so the number would not be prime. The converse need not hold, however: not every prime gives a Mersenne prime (counterexample: ).
Where does the name come from, and why does it matter?
These numbers bear the name of the French monk and scholar Marin Mersenne, who in 1644 (“Cogitata Physico-Mathematica”) gave a list of exponents giving — as he believed — primes. His list contained a few errors, corrected only in the 20th century. Mersenne primes are closely tied to perfect numbers (the Euclid–Euler formula).
Why do the records belong to Mersenne?
For numbers of this form there is an exceptionally fast primality test — the Lucas–Lehmer test — working only for . That is why the record-breaking large known primes are almost always Mersenne numbers. The GIMPS project (Great Internet Mersenne Prime Search, since 1996) uses the computing power of thousands of volunteers’ computers worldwide; the largest known prime (2024) has over 41 million digits.
Why this matters for your exam:
This is a model example that a necessary condition need not be sufficient: “ prime” is necessary for to be prime, but does not guarantee primality. Telling an implication from an equivalence is a classic exam topic — and the primes are the foundation of modern cryptography.
Remember: ; if is prime, then is too — but not the other way round. The largest known primes are Mersenne numbers, found today by the GIMPS project.
They can be prime — but only when the exponent is prime (this is a necessary, not a sufficient, condition).
: — a composite number, even though is prime.
The largest known primes are Mersenne numbers — thanks to the fast Lucas-Lehmer test. In 2024 the GIMPS project found a number with over million digits.
Notation: a Mersenne number, a prime exponent.
Most often of the form 2ᵖ−1 — these are the Mersenne primes.
No — e.g. p=11 gives 2¹¹−1=2047=23·89, a composite number. But if 2ᵖ−1 is prime, then p must be prime too.
The Great Internet Mersenne Prime Search — a distributed search for ever larger Mersenne primes run on volunteers' computers.
Teaching? Embed this experiment on your site.
Free widget — paste it on your school site, blog or notes. It links to the full version.