Ramanujan's prime counting inequality holds for all x ≥ 38,358,837,683: ranges from the zeros, a spectral barrier, and trade-offs

Primarily AI-generated textHuman understanding: all partsmath.NT — Number Theory

Contributed by Sayed Barez ↗

Version 1 / Oct 20, 2026 / CC BY 4.0

Abstract

Ramanujan proved that π(x)2<exlog⁡xπ(x/e)\pi(x)^2 < \frac{ex}{\log x}\pi(x/e) for all sufficiently large xx. Let NRN_R be the least integer such that this holds for every real x≥NRx \ge N_R. Dudek and Platt showed that the Riemann hypothesis implies NR=38,358,837,683N_R = 38{,}358{,}837{,}683. We prove that NR=38,358,837,683N_R = 38{,}358{,}837{,}683. To our knowledge, this is the first determination of NRN_R without assuming the Riemann hypothesis. The proof uses the zero-free half-plane Res>7/8\mathrm{Re}s > 7/8 of a recent OpenAI preprint. Its main statement for ζ\zeta is formalized in Lean 4 and has been rebuilt independently; its written proof has not been peer reviewed. The deduction is our Theorem B: if ζ(s)≠0\zeta(s) \ne 0 for Res>0.945092\mathrm{Re}s > 0.945092, then NR=38,358,837,683N_R = 38{,}358{,}837{,}683. The proof of Theorem B uses only refereed inputs, together with Bhattacharjee's correction of a theorem of Büthe. Relying only on the peer-reviewed literature, and on preprints where stated, we also prove the following by rigorous computer-assisted interval arithmetic. (A) The inequality holds for 38,358,837,683≤x≤e753.9838{,}358{,}837{,}683 \le x \le e^{753.98}. The previous range ended at e103e^{103}. (C) It holds for x≥e3035.01x \ge e^{3035.01}. This replaces Axler's threshold e3158.442e^{3158.442}, whose proof applies a lemma of Dudek and Platt in a case where that lemma's proof is defective. (B′, D) Either of the following also suffices: a zero-free region β≤1−1/(1.7373log⁡∣γ∣)\beta \le 1 - 1/(1.7373\log|\gamma|) above height 3⋅10123\cdot10^{12}, or RH verified to height 4.1602⋅10144.1602\cdot10^{14}. We tabulate the trade-off between the two. (E) Arguments that use only non-negativity, analytic continuation and the poles up to height TT cannot go beyond e754.40e^{754.40} when T=3⋅1012T = 3\cdot10^{12}. So (A) is optimal among such arguments to within 0.41 in log⁡x\log x. Building on Bhattacharjee's discovery that the constant E2E_2 in Büthe's Theorem 1 lacks a factor log⁡(3c)\log(3c), we show that the affected rows of the Broadbent–Kadiri–Lumley–Ng–Wilk table inherit the error, by 1.3–2.2% after re-optimization. We also trace the consequences in the literature.

Provenance statement

This paper was produced by the author directing AI agents (Claude, Anthropic, via Claude Code) that carried out the literature search, the mathematical derivations, the computer-assisted verification and the drafting of the manuscript. All numerical claims are produced by the Python scripts in anc/. Every inequality used in a proof is checked in outward-rounded interval arithmetic (mpmath), on grids with adaptive bisection, and every number in the paper is taken from a saved output file. The author's AI agents independently re-checked key computations: the reproduction of published tables, a quadrature cross-check of the Büthe constant, the reproduction of Johnston–Yang's and Lichtman–Pomerance's constants, and a regeneration of all final outputs from the final scripts. A separate AI agent also audited an earlier draft, and its corrections were incorporated. No human expert has refereed the arguments. Theorem B and Corollary F rely on OpenAI's zero-free half-plane Re s > 7/8 (preprint, 30 Sept 2026), whose statement for ζ has a Lean 4 formalization that was independently rebuilt by a third party; we did not rebuild it ourselves. The full repository, with all scripts and outputs, is at https://github.com/blueberryvertigo/ramanujan-prime-inequality-and-missing-factor.

Tools used

Anthropic
Claude OpusVersion 5.5
n/a
Python 3 + mpmath
n/a
NumPy / SciPy

References

  1. C. Axler, Estimates for π(x)\pi(x) for large values of xx and Ramanujan's prime counting inequality , Integers 18 (2018), Paper No. A61; arXiv:1703.02407.arXiv
  2. C. Axler, On Ramanujan's prime counting inequality , Math.\ Inequal.\ Appl.\ 25 (2022), no. 4, 1147--1154; arXiv:2207.02486.arXiv
  3. B. C. Berndt, Ramanujan's Notebooks, Part IV , Springer, 1994.
  4. C. Bellotti, An explicit log-free zero density estimate for the Riemann zeta-function , preprint, arXiv:2405.12545, 2024.arXiv
  5. S. Bhattacharjee, A survey of Büthe's method for estimating prime counting functions , M.Sc.\ thesis, University of Lethbridge, 2024 (supervisor N. Ng), https://hdl.handle.net/10133/6755.link
  6. S. Broadbent, H. Kadiri, A. Lumley, N. Ng, and K. Wilk, Sharper bounds for the Chebyshev function θ(x)\theta(x) , Math.\ Comp.\ 90 (2021), 2281--2315; arXiv:2002.11068.arXiv
  7. C. Bellotti, T. Trudgian, and A. Yang, Zero-free regions inspired by work of Heath-Brown , preprint, arXiv:2603.21490, 2026.arXiv
  8. J. Büthe, Estimating π(x)\pi(x) and related functions under partial RH assumptions , Math.\ Comp.\ 85 (2016), 2483--2498; arXiv:1410.7015v4, 2022.arXiv
  9. J. Büthe, An analytic method for bounding ψ(x)\psi(x) , Math.\ Comp.\ 87 (2018), no. 312, 1991--2009.
  10. A. Chirre and H. A. Helfgott, Optimal bounds for sums of non-negative arithmetic functions , preprint, arXiv:2512.15709, 2025.arXiv
Show all 34 referencesShow fewer references
  1. M. Cully-Hugill and D. R. Johnston, On the error term in the explicit formula of Riemann--von Mangoldt , Int.\ J.\ Number Theory 19 (2023), no. 6, 1205--1228; arXiv:2111.10001v5.arXiv
  2. S. De, On proving an inequality of Ramanujan using explicit order estimates for the Mertens function , preprint, arXiv:2407.12052v6, 2024.arXiv
  3. S. De, On proving Ramanujan's inequality using a sharper bound for the prime counting function π(x)\pi(x) , preprint, arXiv:2408.02591, 2024.arXiv
  4. A. W. Dudek and D. J. Platt, On solving a curious inequality of Ramanujan , Exp.\ Math.\ 24 (2015), no. 3, 289--294.
  5. A. Fiori and M. Jaskari, Explicit bounds for the prime number theorem , preprint, arXiv:2609.23222v2, 2026.arXiv
  6. J. Franke, T. Kleinjung, J. Büthe, and A. Jost, A practical analytic method for calculating π(x)\pi(x) , Math.\ Comp.\ 86 (2017), no. 308, 2889--2909.
  7. A. Fiori, H. Kadiri, and J. Swidinsky, Sharper bounds for the Chebyshev function ψ(x)\psi(x) , J.\ Math.\ Anal.\ Appl.\ 527 (2023), Paper No. 127426; arXiv:2204.02588.arXiv
  8. A. Fiori, H. Kadiri, and J. Swidinsky, Sharper bounds for the error term in the prime number theorem , Res.\ Number Theory (2023); arXiv:2206.12557.arXiv
  9. M. Hassani, Remarks on Ramanujan's inequality concerning the prime counting function , Commun.\ Math.\ 29 (2021), 473--482.
  10. G. A. Hiary, D. Patel, and A. Yang, An improved explicit estimate for ζ(1/2+it)\zeta(1/2+it) , J.\ Number Theory (2024); arXiv:2207.02366.arXiv
  11. T. Tao et al., Integrated Explicit Analytic Number Theory Network (IEANTN) , https://github.com/teorth/IEANTN, nodes DudekPlatt.v3 and BKLNW.v1 , 2026.link
  12. D. R. Johnston, Improving bounds on prime counting functions by partial verification of the Riemann hypothesis , Ramanujan J.\ 59 (2022); arXiv:2109.02249.arXiv
  13. D. R. Johnston, N. Leong, and S. Tudzi, New bounds and progress towards a conjecture on the summatory function of (−2)Ω(n)(-2)^{\Omega(n)} , Exp.\ Math.\ (2025); arXiv:2408.04143.arXiv
  14. D. R. Johnston and A. Yang, Some explicit estimates for the error term in the prime number theorem , J.\ Math.\ Anal.\ Appl.\ 527 (2023); arXiv:2204.01980.arXiv
  15. B. Liu, Slightly improved zero-free half-planes for the quasi-Riemann hypothesis , preprint, arXiv:2610.12234, 2026.arXiv
  16. J. D. Lichtman and C. Pomerance, Explicit estimates for the distribution of numbers free of large prime factors , J.\ Number Theory (2018); arXiv:1705.02442.arXiv
  17. M. J. Mossinghoff, T. S. Trudgian, and A. Yang, Explicit zero-free regions for the Riemann zeta-function , Res.\ Number Theory (2023); arXiv:2212.06867.arXiv
  18. G. Neubauer, Eine empirische Untersuchung zur Mertensschen Funktion , Numer.\ Math.\ 5 (1963), 1--13.
  19. OpenAI, The quasi-Riemann hypothesis: a zero-free half-plane Re⁡s>7/8\operatorname{Re}s>7/8 , preprint, 30 September 2026; Lean 4 formalization in https://github.com/openai/math, file lean/Comparator\-Challenges/Quasi\-Riemann\-Hypothesis.lean .link
  20. The PrimeNumberTheoremAnd project, https://github.com/AlexKontorovich/PrimeNumberTheoremAnd.link
  21. D. J. Platt and T. S. Trudgian, The Riemann hypothesis is true up to 3⋅10123\cdot10^{12} , Bull.\ Lond.\ Math.\ Soc.\ 53 (2021), no. 3, 792--797.
  22. D. J. Platt and T. S. Trudgian, The error term in the prime number theorem , Math.\ Comp.\ 90 (2021), no. 328, 871--881.
  23. J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers , Illinois J.\ Math.\ 6 (1962), 64--94.
  24. tomoto0, quasi-riemann-hypothesis-7-8-verification , independent rebuild of the Lean formalization of OAI26 , https://github.com/tomoto0/quasi-riemann-hypothesis-7-8-verification, 2026.link

Version history

  1. v1Submitted by Sayed BarezInitial depositCurrentOct 19, 2026