Node:Mersenne number, Next:Lucas-Lehmer test, Up:Glucas internals
A Mersenne number is an integer number in the the form
M(p) = 2^p - 1
The number p
is the Mersenne exponent.
Its binary representation is just a chain of p
ones. This kind of
numbers have a lot of nice properties which make them easier than a general
integer. You can read a lot more about Mersenne numbers at Chris Caldwell's
Mersenne Primes pages.
The special form of Mersenne numbers gives us three big advantages:
It is a well known result that M(p)
is prime only if p
is prime.
Unfortunately, if p
is prime this does not mean M(p)
is prime.
Actually, up to 4 July 2002 there are only 39 known Mersenne primes.
The values of mersenne exponents p
for M(p)
prime are:
2, 3, 5, 7, 13, 17, 19, 31, 61, 89, 107, 127, 521, 607, 1279, 2203, 2281, 3217, 4253, 4423, 9689, 9941, 11213, 19937, 21701, 23209, 44497, 86243, 110503, 132049, 216091, 756839, 859433, 1257787, 1398269, 2976221, 3021377, 6972593, 13466917