In number theory, Cramér's conjecture, formulated by the Swedish mathematician Harald Cramér in 1936, is an estimate for the size of gaps between consecutive prime numbers: intuitively, that gaps between consecutive primes are always small, and the conjecture quantifies asymptotically just how small they must be. It states that where pn denotes the nth prime number, O is big O notation, and "log" is the natural logarithm. While this is the statement explicitly conjectured by Cramér, his heuristic actually supports the stronger statement and sometimes this formulation is called Cramér's conjecture. However, this stronger version is not supported by more accurate heuristic models, which nevertheless support the first version of Cramér's conjecture. Neither form has yet been proven or disproven.
Cramér's conjecture is based on a probabilistic model—essentially a heuristic—in which the probability that a number of size x is prime is 1/log x. This is known as the Cramér random model or Cramér model of the primes. In the Cramér random model, with probability one. However, as pointed out by Andrew Granville, Maier's theorem shows that the Cramér random model does not adequately describe the distribution of primes on short intervals, and a refinement of Cramér's model taking into account divisibility by small primes suggests that , where is the Euler–Mascheroni constant. János Pintz has suggested that the limit sup may be infinite, and similarly Leonard Adleman and Kevin McCurley write
Related conjectures and heuristics
conjectured the following asymptotic equality, stronger than Cramér's conjecture, for record gaps: J.H. Cadwell has proposed the formula for the maximal gaps: which is formally identical to the Shanks conjecture but suggests a lower-order term. Marek Wolf has proposed the formula for the maximal gaps expressed in terms of the prime counting function where and is twice the twin primes constant; see,. Using Gauss's approximation this gives which for large is also asymptotically equivalent to the Cramér and Shanks conjectures:. Thomas Nicely has calculated many large prime gaps. He measures the quality of fit to Cramér's conjecture by measuringthe ratio He writes, “For the largest known maximal gaps, has remained near 1.13.” However, is still less than 1.