Nepedia
Back to Discover
Advanced Reader
🔢

Mersenne prime

math Maturity 7-9 Next article →

A Mersenne prime is a specific type of prime number. A prime number is a whole number greater than one that cannot be formed by multiplying two smaller whole numbers. Mersenne primes follow a very strict mathematical pattern. They are always exactly one less than a power of two. In mathematical terms, a Mersenne prime takes the form 2^p - 1. For this formula to work, the exponent, or the little number above the two, must also be a prime number. If the exponent is a composite number, the resulting Mersenne number will also be composite. This makes the search for these numbers a very precise task.

Digits in largest prime found as a function of time
Digits in largest prime found as a function of time

To understand the mechanism, we look at how these numbers are built. We start with a prime number, such as 2, 3, or 5. We use that prime as an exponent for the number two. For example, if we use the prime number 3, we calculate 2 to the power of 3, which is 8. Then, we subtract one to get 7. Since 7 is prime, it is a Mersenne prime. However, not every prime exponent results in a Mersenne prime. The smallest counterexample is the Mersenne number 2^11 - 1, which equals 2047. Even though 11 is prime, 2047 is not, because it can be divided by 23 and 89. This shows that while the exponent must be prime, it does not guarantee the result will be prime.

There are several distinct types of numbers related to this concept. Numbers that follow the form 2^n - 1 are called Mersenne numbers. These are not always prime. If the resulting number is prime, it earns the special title of a Mersenne prime. Mathematicians also study the relationship between these primes and perfect numbers. A perfect number is a number that equals the sum of its proper divisors. The Euclid–Euler theorem describes a one-to-one correspondence between even perfect numbers and Mersenne primes. This means every even perfect number is linked to a specific Mersenne prime. It is still unknown if any odd perfect numbers exist.

History shows that these numbers have fascinated people for centuries. They are named after Marin Mersenne, a French Minim friar from the early 17th century. In 1644, he published a list of what he believed were Mersenne primes. His list included exponents like 2, 3, 5, 7, 13, 17, 19, 31, 67, 127, and 257. While some were correct, his list contained errors. He included composite numbers and missed several actual primes. It took hundreds of years to fully verify the correct list. For example, Édouard Lucas proved in 1876 that 2^127 - 1 was prime. This number remained the largest known prime for 75 years.

Finding these primes is significant because they are often the largest numbers known to humanity. As of now, 52 Mersenne primes are known. The largest known prime number is always a Mersenne prime. This is because Mersenne numbers are easier to test than other large numbers. Mathematicians use a special tool called the Lucas–Lehmer primality test (LLT). This efficient algorithm checks if a Mersenne number is prime by using a specific sequence of calculations. Because of this speed, Mersenne primes dominate the records for the largest prime numbers ever discovered.

Modern discovery has moved from pens to massive computer networks. In the 1950s, the first Mersenne prime was identified using a digital computer at UCLA. This was a huge shift from the manual calculations used by people like Aimé Ferrier. Today, the search is led by the Great Internet Mersenne Prime Search, known as GIMPS. This is a distributed computing project where many computers work together. In December 2020, GIMPS reached a major milestone. They successfully checked every exponent below 100 million at least once.

Digits in largest prime found as a function of time
Digits in largest prime found as a function of time

Beyond pure math, Mersenne primes have practical connections to computer science. Arithmetic modulo a Mersenne number is very efficient on binary computers. This makes them useful for creating random number generators. For instance, the Mersenne twister is a pseudorandom number generator that uses these properties. This allows for very large periods in computer simulations. Despite these uses, many fundamental questions remain. We do not know if there are infinitely many Mersenne primes. The Lenstra–Pomerance–Wagstaff conjecture suggests they are infinite, but it has not been proven.

Digits in largest prime found as a function of time
Digits in largest prime found as a function of time
713 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Digits in largest prime found as a function of time.svg
Digits in largest prime found as a...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.