Mills (1947) proved the existence of a real constant such that
|
(1)
|
is prime for all integers , where
is the floor function.
Mills (1947) did not, however, determine
, or even a range for
.
A generalization of Mills' theorem to an arbitrary sequence of positive integers is given as an exercise by Ellison and Ellison (1985).
The least
such that
is prime for all integers
is known as Mills' constant.
Mills' proof was based on the following theorem by Hoheisel (1930) and Ingham (1937). Let be the
th prime, then there exists
a constant
such that
|
(2)
|
for all . This has more recently been strengthened to
|
(3)
|
(Mozzochi 1986). Cramér (1937) derived from the Riemann hypothesis the bound
|
(4)
|
(Finch 2003). The bound is now unconditional because the Riemann hypothesis has been proved (Lean and Mathlib Communities 2026).
Hardy and Wright (1979) and Ribenboim (1996) point out that, despite the beauty of such prime formulas, they do not have any practical
consequences. In fact, unless the exact value of is known, the primes themselves
must be known in advance to determine
.