A Cunningham number is a binomial number of the form
with positive integers
and
. Bases which are perfect powers
, with
, need not be considered since they correspond to
. Prime
numbers of the form
are very rare.
A necessary (but not sufficient) condition for
to be prime is that
be of the form
for a nonnegative integer
. Numbers of the form
are called Fermat
numbers, and the only known primes occur for
,
,
,
,
and
(i.e.,
,
1, 2, 3, 4). The only other primes
for bases
that are not perfect powers
and
are
,
,
and
.
is always divisible by 3 when
is odd.
Primes of the form are also very rare. The Mersenne
numbers
are known to be prime for 52 values of
as of Oct. 2026 (Great Internet Mersenne Prime Search),
the first few of which are
, 3, 5, 7, 13, 17, 19, ... (OEIS A000043).
Such numbers are known as Mersenne primes. There
are no other primes
for bases
that are not perfect powers
and
.
Cunningham and Woodall (1925) gathered together all that was known about which numbers
are prime and about their factorizations
and published a small book of tables. These tables collected from scattered sources
the known prime factors for the bases 2 and 10 and
also presented the authors' results of 30 years' work with these and other bases.
Since 1925, many people have worked on filling in these tables. D. H. Lehmer, a well-known mathematician who died in 1991, was for many years a leader of these efforts. Lehmer was a mathematician who was at the forefront of computing as modern electronic computers became a reality. He was also known as the inventor of some ingenious pre-electronic computing devices specifically designed for factoring numbers.
Updated factorizations were published in Brillhart et al. (1988). The tables have been extended by Brent and te Riele (1992)
to ,
with
for
and
for
.
In these tables, all entries with
were completely factored, and every remaining composite
cofactor had at least 81 decimal digits.