Maximal Prime Gaps
- Maximal prime gaps are record-setting intervals between consecutive primes where each new gap exceeds all previous ones, highlighting irregularities in prime distribution.
- They involve probabilistic models like Cramér’s and refinements by Granville, which predict a near-$( ext{log } x)^2$ growth trend and connect to extreme value theory.
- Recent advances in sieve methods and computational techniques have tightened unconditional and conditional bounds, supporting key conjectures in analytic number theory.
A maximal prime gap is a record-setting interval between two consecutive primes: for the ordered primes , the gap is maximal if for all . The study of maximal prime gaps probes the interface between the regularity described by the Prime Number Theorem and the unpredictable variability in the distribution of primes. It plays a central role in analytic and probabilistic number theory, connecting to extreme value statistics, sieve theory, the Riemann hypothesis, and deep conjectures such as Cramér, Granville, and the Hardy–Littlewood -tuple conjecture.
1. Fundamental Definitions and Classical Results
Let denote the primes in order, and define the th prime gap . A gap is said to be a maximal prime gap (or "record gap") if . Let 0 be the largest gap among all consecutive primes up to 1. The 2-th record gap appears at index 3 and is denoted 4.
Historically, the maximal prime gap function 5 has attracted interest due to its connection with the subtler irregularities in the prime sequence, beyond the average spacing predicted by the Prime Number Theorem. The earliest unconditional result, due to Westzynthius (1931), established that 6 as 7 (Ford et al., 2014). Erdős (1935), Rankin (1938), and subsequent works provided quantitative lower bounds, while Cramér (1936) conjectured the correct upper order of growth.
2. Conjectures and Heuristic Laws: Cramér, Shanks, and Granville
Cramér–Shanks Conjecture
Cramér’s probabilistic model, based on treating primes as random with the correct density, leads to the conjecture: 8 or equivalently, for prime index 9, 0 (Cohen, 2024, Kourbatov, 2013). This is the Cramér–Shanks law.
Granville’s Refinement
Granville’s analysis, using more realistic models of prime distribution, predicts that the limsup of scaled record gaps exceeds the Cramér constant: 1 where 2 is Euler–Mascheroni (Cohen, 2024, Banks et al., 2019).
Explicit Growth and Moment Heuristics
Heuristics based on the statistics of rare events suggest for the 3th power moments of gaps,
4
which ties directly to the exponential model for gaps and leads back to the predicted quadratic-logarithmic behavior for maximal gaps (Cohen, 2024).
3. Rigorous Bounds: Unconditional, Conditional, and Sieve Methods
Unconditional Upper Bounds
The best-known unconditional bound for all large 5 is due to Wang, who proves
6
for all 7 (Wang, 20 Oct 2025). This confirms the quadratic-log order conjectured by Cramér, up to the explicit constant 8: 9 Earlier, Carella established for any 0,
1
for large enough 2 (Carella, 2013), but the sharpest unconditional exponent currently achievable is 3.
Conditional Bounds (Riemann Hypothesis)
Assuming RH, improved bounds are possible. Carella proved (Carella, 2010)
4
while Carneiro, Milinovich, and Soundararajan obtained the explicit RH-bound (Carneiro et al., 2017)
5
These RH results represent the current state-of-the-art for all 6 and connect prime gap questions to properties of 7-zeros via explicit formulae.
Unconditional Lower Bounds
Ford, Green, Konyagin, Maynard, and Tao showed that for arbitrarily large 8, there exist gaps
9
with 0 as 1 (Ford et al., 2014). No unconditional construction produces gaps of order as large as 2—the gap between known lower and upper bounds remains substantial.
4. Probabilistic and Extreme-Value Models
Cramér’s Model and the Gumbel Law
In the Cramér random model—where each 3 independently has probability 4 of being "prime"—the distribution of maximal gaps converges, after centering and scaling, to the Gumbel distribution (Kourbatov, 2014, Kourbatov, 2013): 5 with parameters 6 and 7. This is strongly supported numerically for actual primes (Kourbatov et al., 2019, Kourbatov, 2013).
Refined Trend Formulas
Numerical and heuristic arguments (Wolf–Shanks–Kourbatov–Oliveira e Silva) refine the basic 8 trend: 9 with 0 (from the twin prime constant) (Wolf, 2011, Kourbatov et al., 2019). Numerical data up to 1 confirm this trend within error of 2, and no maximal gap has ever exceeded 3 except in a handful of low and large 4 exceptions (Cohen, 2024).
5. Record Data, Verification, and Empirical Landscape
Extensive computations tabulate all record gaps up to 5. Visser utilized the 81 known record gaps to verify three sharper conjectured bounds (Firoozbakht, Nicholson, Farhadian) for all 6 (7) (Visser, 2019). Empirical record gaps always remain beneath the 8 curve, with the ratio 9 from below, but with rare excursions above the Granville threshold (Cohen, 2024, Kourbatov, 2013).
Sample of Early Maximal Gaps
| 0 | 1 | 2 | 3 |
|---|---|---|---|
| 2 | 3 | 1 | 0.48 |
| 3 | 5 | 2 | 1.21 |
| 7 | 11 | 4 | 3.79 |
| 113 | 127 | 14 | 22.35 |
| 887 | 907 | 20 | 46.08 |
| ... | ... | ... | ... |
6. Maximal Gaps in Progressions, Residue Classes, and 4-tuplets
The maximal gap framework extends to primes in arithmetic progressions and to prime 5-tuples. For residue class 6, maximal gaps almost always satisfy 7; in general, the empirical trend is (Kourbatov, 2016, Kaptan, 2018)
8
with rare exceptions. Analogous extreme-value and Gumbel statistics appear for general 9-tuplets, with the mean gap scaling as 0 and maximal gaps as 1 (Kourbatov, 2013, Kourbatov, 2014).
7. Open Problems and Future Directions
Despite substantial progress, a rigorous proof of the Cramér–Shanks law 2 remains elusive. The scale separation between current unconditional lower and upper bounds persists. Conditional improvements via RH are stagnated at 3 (Carella, 2010). On the computational side, faster sieves and large dataset runs have verified all conjectured upper bounds for primes 4 (Troisi, 2020, Visser, 2019). It remains an open question whether the limiting distribution of maximal gaps, when appropriately standardized, is truly Gumbel for the true prime sequence; this is currently known only in random and model settings (Kourbatov, 2014, Kourbatov et al., 2019). The precise limsup of 5 is unknown, but data and heuristic models suggest Granville's threshold is exceeded only extremely rarely. Further progress likely requires new ideas in sieve theory, prime tuples, or the analytic theory of L-functions.
Key references: (Wolf, 2011, Kourbatov, 2013, Carneiro et al., 2017, Wang, 20 Oct 2025, Ford et al., 2014, Kourbatov et al., 2019, Kourbatov, 2016, Troisi, 2020, Cohen, 2024, Kourbatov, 2014, Carella, 2013, Carella, 2010, Kourbatov, 2013, Wolf, 2010, Banks et al., 2019, Kaptan, 2018, Ford et al., 2015, Visser, 2019)