If denotes theith prime in this sequence, then can be calculated as the smallest prime number larger than. In order to ensure that rounding, forn = 1, 2, 3, ..., produces this sequence of primes, it must be the case that. The Hoheisel–Ingham results guarantee that there exists a prime between any two sufficiently largecube numbers, which is sufficient to prove this inequality if we start from a sufficiently large first prime. The Riemann hypothesis implies that there exists a prime between any two consecutive cubes, allowing thesufficiently large condition to be removed, and allowing the sequence of Mills primes to begin ata1 = 2.
For all, there is at least one prime between and.[2] This upper bound is much too large to be practical, as it is infeasible to check every number below that figure. However, the value of Mills' constant can be verified by calculating the first prime in the sequence that is greater than that figure.
As of April 2017, the 11th number in the sequence is the largest one that has beenproved prime. It is
By calculating the sequence of Mills primes, one can approximate Mills' constant as
Caldwell and Cheng used this method to compute 6850 base 10 digits of Mills' constant under the assumption that theRiemann hypothesis is true.[4] Mills' constant is not known to have aclosed-form formula,[5] but it is known to beirrational.[6]
There is nothing special about the middle exponent value of 3. It is possible to produce similar prime-generatingfunctions for different middle exponent values. In fact, for any real number above 2.106..., it is possible to find a different constantA that will work with this middle exponent to always produce primes. Moreover, ifLegendre's conjecture is true, the middle exponent can be replaced[7] with value 2 (sequenceA059784 in theOEIS).
Matomäki showed unconditionally (without assuming Legendre's conjecture) the existence of a (possibly large) constantA such that is prime for alln.[8]
Additionally, Tóth proved that the floor function in the formula could be replaced with theceiling function, so that there exists a constant such that
is also prime-representing for.[9]In the case, the value of the constant begins with 1.24055470525201424067... The first few primes generated are:
Without assuming the Riemann hypothesis, Elsholtz proved that is prime for all positive integersn, where, and that is prime for all positive integersn, where.[10]
Duc-Son Tran proved that in Tóth's result above, the number r can be replaced by any real number.Moreover, he demonstrated another result stating that for any given real number B>1, there exists a number r such thatis also prime-representing.[11]