WorksMathematics
An explicit prime gap under the Riemann hypothesis with an elementary prime power window and an updated zero count
Abstract
Dudek proved that if the Riemann hypothesis is true, then for every real there is a prime in the interval . We give a proof of this statement in which each cited input is stated explicitly or replaced. With , the prime power contribution is needed only across the window , and there it is bounded by an elementary count of squares and higher powers, without the Riemann hypothesis and without the bounds of Rosser and Schoenfeld. The sum over the nontrivial zeros is bounded from the explicit zero count of Hasanalizade, Shen and Wong for , by trading slack between the head and the tail of the sum at the split point . The range is settled by a short table of prime gaps. The Riemann hypothesis is open and this note makes no progress on it.
Introduction
We cite A. W. Dudek, On the Riemann hypothesis and the difference between primes [1], by its journal version: all theorem, lemma, equation and page numbers of [1] below are those of Int. J. Number Theory 11 (2015), 771–778. The main result of [1] is the following.
Theorem A (Dudek [1 Theorem 1.2, p. 772]). Suppose the Riemann hypothesis is true. Then there is a prime in the interval
for all .
This improves the constant of Ramaré and Saouter [8 Theorem 1] to .
Later work went further: Dudek, Grenié and Molteni [5 Theorem 1.1] proved a prime in a symmetric interval of total length , and Carneiro, Milinovich and Soundararajan [3 Theorem 5] proved, under the Riemann hypothesis, that for there is a prime in . Theorem A is therefore not the best known constant. In [1], Theorem 1.1, p. 771, which Dudek quotes from Cramér, gives a constant with for all , and Theorem 1.3, p. 772, gives a prime in for all sufficiently large .
This note gives a proof of Theorem A that follows Dudek’s argument and states every explicit input. Write
Theorem 1.1. Suppose the Riemann hypothesis is true. Then for every real there is a prime with . The proof uses, besides the Riemann hypothesis, only the explicit zero count (1) of Hasanalizade, Shen and Wong [2 Corollary 1.2], and the form of [1 Lemma 2.1] stated in § 4.
The mathematical content of this note is two observations. The proof uses only across a short window, where the prime power mass is by counting (§ 2). The zero sum can be closed with a zero count whose constant is too large for separate head and tail bounds, by trading slack at the split point (§ 3). Neither is claimed as new. Section 5 describes the verification of these results and where the code is.
Outline of Dudek’s proof. Section 2 of [1] uses the weight on the open interval together with
see [1 p. 773]. The argument has five steps.
Explicit formula for , [1 Lemma 2.1, p. 773]. For , not an integer,
display (2.2), where runs over the nontrivial zeros of the Riemann zeta function. The proof bounds a sum over zeros by and quotes the value of this sum from Davenport [4].
Weighted prime-power sum, [1 Lemma 2.2, p. 774]. For and ,
where
Splitting the sum over zeros. Writing , the sum is split at . For the head, [1 (2.4), p. 775] uses the zero count
This bound follows from Corollary 1 of Trudgian [9], which states that for
and which gives for all . For the tail, [1 p. 775] uses Lemma 1 (ii) of Skewes [6].
Passing from to primes. Dudek uses Theorem 14 and equation (5.5) of Rosser and Schoenfeld [7], [1 p. 775]:
(5) Positivity and the threshold. With and , the first display of [1 p. 776] states that exceeds
which is positive for all . Replacing by gives Theorem A for
at the end of Section 2.2 of [1], p. 776. The remaining values of were checked there by a Mathematica computation.
Table 1 lists how the inputs of the printed proof are used here. Four cited inputs are replaced: the zero count of [9], the bound of [7], the tail bound of [6] and the value from [4]. The zero count of [2] is a choice of input; this note does not examine whether the input of [9] also suffices for the argument below.
| Component | Printed proof [1] | This note |
| Zero hypothesis | Riemann hypothesis | Riemann hypothesis |
| Zero count | [9 Corollary 1], as (2.4), | [2 Corollary 1.2], as (1), |
| Prime power step | [7], for | Proposition 2.1, by counting |
| error bound | , all | |
| Sum | Value from Davenport [4] | Not used |
| Tail of | Lemma 1 (ii) of Skewes [6] | From (1), step 2 of Section 3 |
| Large range | , | , |
| Small range | Mathematica, no table printed | Table 2, |
Table 1. Inputs of the printed proof of [1] and of the proof given here.
The prime power window
The proof of Theorem A uses the difference only through its increment across the window . The two-sided bound of Rosser and Schoenfeld [7] implies the following window bound, which is therefore all that Dudek’s argument requires; we prove it directly.
Proposition 2.1. For every real , with ,
.
The proof goes through the following bound on the mass of the window.
Lemma 2.2. Let be real numbers with . Then
.
Proof. Since and , the difference is the sum of over non-prime integers . Consequently, the left side of the lemma is precisely the von Mangoldt mass of the prime powers with lying in the interval .
First, the non-prime von Mangoldt mass over a natural-number interval with satisfies
Indeed, every non-prime with is of the form for a prime and an integer satisfying . For such , its von Mangoldt weight satisfies
and for each fixed exponent , the map is injective.
Second, for real numbers , the number of -th powers in the integer interval satisfies
Applying these two bounds separates the prime powers in into squares, , and higher powers, :
For , there are at most squares in , each carrying weight .
For each , the bound follows from the case , since decreases as increases when ; so there is at most one -th power in , carrying weight .
There are at most exponents , which gives the last term.
Proof of Proposition 2.1. Let , , , , and . For all ,
These give , so and . Hence , and
gives . Also gives , so Lemma 2.2 applies. Further .
Since and , the target satisfies
By Lemma 2.2 and , the window mass is at most
Substituting , the proof closes with the polynomial inequality
for .
Indeed the left side is at most , so the difference of the two sides is at least , which exceeds at and is increasing for .
The zero sum from the Hasanalizade, Shen and Wong count
Let be the number of zeros of the Riemann zeta function with and , counted with multiplicity. Hasanalizade, Shen and Wong [2 Corollary 1.2, p. 221, display (1.5)] prove that for
where
By the symmetry of the zeros, it follows that for
with multiplicity. The constant is not needed; keeping it makes the constants below match those of § 5. Only (2) is used below.
Proposition 3.1. Let be any family of real numbers satisfying (2) in place of the ordinates of the zeros, and let be the sum of [1 Lemma 2.2] over . For every , with ,
This proposition takes no Riemann hypothesis. The hypothesis enters only when the family is taken to be the ordinates of the nontrivial zeros, so that are the zeros themselves.
The bound has the same form as [1 (2.5) and p. 776, $\alpha=2$]. The route differs. From (2), with its constant 9.3675, the separate head and tail estimates that would give this form do not both hold near : the tail inequality
needs about , while at the split point with we only know .
Proof of Proposition 3.1. Keep the split at and trade slack between head and tail in four steps.
Head slack. For all , the first inequality of (2) implies
so the head count has a positive slack of about below the main term . Indeed,
and for one has , so . Write for this slack. (2) Tail with excess. For , partial summation against the second inequality of (1) gives
and the excess is positive until about . For one has and .
(3) Comparison of head and tail weights. Let
and
denote the head weight and tail weight, respectively. If , which is equivalent to , then
(4) Combined split bound. Let denote the second-difference term
for the -th zero. Each head term has , by the integral representation of [1 p. 774], and each tail term has , as in [1 p. 775]. The head count and the tail bound give
Using and , the excess from the tail sum is absorbed into the slack of the head count, which yields
Since , substituting , , and , this upper bound equals the right side of Proposition 3.1.
Completion of the proof
where is the zero sum for , integer allowed. The bound is below the printed , and its proof does not use the value of ; it is part of the checked development of Section 5. For only the identity is needed, and the proof below uses only for . Lemma 2.2 of [1] follows by taking the second difference across , with error at most ; we use it for , which holds for .
Primes in the window for . Let . Since , the split point is at least 70. As and , Lemma 2.2 of [1] and Proposition 3.1 give
and subtracting the bound of Proposition 2.1 gives . By the monotonicity argument of [1 p. 776], made explicit by elementary bounds on each term, for every real , so there is a prime in .
Large range. Let . The map is continuous and increasing, and , so there is with . A prime in satisfies and , as is increasing.
Small range. For every integer with there is a prime with , where is the gap of the row of Table 2 that contains ; the largest values of in the six rows are 0, 1, 1, 3, 13, 71. Let be real with , put , and take this prime . Then , and since and ,
| Integers | Gap | at the first , about |
| 2 | 1 | 1.25 |
| 3 to 4 | 2 | 2.42 |
| 5 to 6 | 2 | 4.58 |
| 7 to 22 | 4 | 6.56 |
| 23 to 199 | 14 | 19.15 |
| 200 to 67000 | 72 | 95.40 |
Table 2. Prime gap data for . Each integer in a row has a prime with .
If the row of starts at , then because and is increasing, so . This uses no Riemann hypothesis.
Since and overlap, Theorem 1.1 follows.
Cited inputs. Table 3 lists every cited input of the printed proof and of the proof here, with the page of the source that was read.
| Input | Page | Printed statement | Use |
| Corollary 1.2 of [2] | p. 221, display 1.5 | for | Used for , as (1) |
| Corollary 1 of [9] | Section 1; used in [1], p. 775 | for , giving for | Replaced by (1) |
| Theorem 14 and (5.5) of [7] | pp. 71, 77; used in [1], p. 775 | for ; for | Replaced by Proposition 2.1 |
| Lemma 1 (ii) of [6] | p. 50; used in [1], p. 775 | for | Replaced, from (1) |
| Value of , [4] | pp. 81–82; used in [1], p. 773 | under the Riemann hypothesis | Not used |
Table 3. Cited inputs: source and page, printed statement, and use.
Verification
The main results of this note are checked in Lean 4 with Mathlib [13], version v4.35.0-rc3, in the repository https://github.com/sthubbar/goldbach-lean, directory entries/dudek2014, commit da5cf9edad7896290771dfcab8feee2906399e3d [11], registered as Palomar entry PALOMAR-2026-11-01-000028, version 1 [10]. Theorem 1.1 is
LeanLab.PNTPort.ExplicitPsi1.Trivial.theorem2_of_RH_hsw, which proves PrimeInDudekInterval x for all real , with dudekH the function . It takes two hypotheses, neither declared as an axiom. The first, RiemannHypothesis, is the Riemann hypothesis as stated in Mathlib. The second, HSWN70 gZ, is (1) for the ordinates of the nontrivial zeros counted with multiplicity, written with main term and remainder ; it is taken from Corollary 1.2 of Hasanalizade, Shen and Wong [2] and is not proved in Lean, and the step from that corollary to (1) is argued by hand in Section 3. Proposition 2.1, Lemma 2.2, Proposition 3.1, the form of Lemma 2.1 of [1] with 2.393, the positivity of rhs and the small range are window_holds, mass_le, sigmaBd_of_hsw, lemma4_Zpatch, rhs_pos and small_range; the last evaluates Table 2 in the kernel. Under the same two hypotheses the repository also proves Theorem 1.1 of [1] with and Theorem 1.3 of [1], as theorem1_of_RH_hsw and theorem3_of_RH_hsw; their proofs are not given in this note.
Code availability. In entries/dudek2014, run lake exe cache get, lake build and lake comparator --config=comparator-dudek2014.json; the comparator checks against ChallengeDudek2014.lean. The axioms used are propext, Quot.sound and Classical.choice, with no sorry. Sixteen files under LeanLab/PNTPort/StrongPNT are from PrimeNumberTheoremAnd [12], commit c39a751132c88b6e8080b74c74023fd95b3d8be0, Apache-2.0, credited to its contributors.
Steve Hubbard designed the research program and directed this work. AI tools, Claude and Gemini, were used to write the Lean code and draft the text. The author takes full responsibility for the content.
Independent Researcher
References
- [1][Dudek] A. W. Dudek, On the Riemann hypothesis and the difference between primes, Int. J. Number Theory 11 (2015), no. 3, 771–778, doi:10.1142/S1793042115500426; preprint arXiv:1402.6417.DOI
- [2][HSW] E. Hasanalizade, Q. Shen and P.-J. Wong, Counting zeros of the Riemann zeta function, J. Number Theory 235 (2022), 219–241, arXiv:2107.06506.arxiv.org/abs/2107.06506
- [3][CMS] E. Carneiro, M. B. Milinovich and K. Soundararajan, Fourier optimization and prime gaps, arXiv:1708.04122v2, first posted 2017, doi:10.4171/CMH/467.DOI
- [4][Da] H. Davenport, Multiplicative Number Theory, Springer, 1980.DOI
- [5][DGM] A. W. Dudek, L. Grenié and G. Molteni, Primes in explicit short intervals on RH, Int. J. Number Theory 12 (2016), no. 5, 1391–1407, arXiv:1503.05403.DOI
- [6][Sk] S. Skewes, On the difference π(x) − li(x) II, Proc. London Math. Soc. (3) 5 (1955), 48–70.DOI
- [7][RS] J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6, 1962, no. 1, 64–94.
- [8][RaSa] O. Ramaré and Y. Saouter, Short effective intervals containing primes, J. Number Theory 98, 2003, no. 1, 10–33.DOI
- [9][Tr] T. S. Trudgian, An improved upper bound for the argument of the Riemann zeta-function on the critical line II, J. Number Theory 134 (2014), 280–292, doi:10.1016/j.jnt.2013.07.017.DOI
- [10][Palomar] Palomar registry, entry PALOMAR-2026-11-01-000028, version 1, https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-01-000028&version=1.
- [11][Repo] S. Hubbard, goldbach-lean repository, directory entries/ dudek2014, commit da5cf9edad7896290771dfcab8feee2906399e3d, https://github.com/shubhar/goldbach-lean.
- [13][Mathlib] The mathlib Community, The mathlib mathematical library, https://github.com/leanprover-community/mathlib4, version v4.35.0-rc3.