The constant term in Cramer's mean-square theorem for the primes. Second-order asymptotics and limiting fluctuations of the prime energy

A mix of human-written and AI-generated textHuman understanding: all partsmath.NT — Number Theorymath.CV — Complex Variables

Contributed by Pedro Caceres ↗

Version 1 / Nov 25, 2026 / CC BY 4.0

Abstract

Let I(X)=∫1X(ψ(x)−x)2x−2 dxI(X)=\int_1^X(\psi(x)-x)^2x^{-2}\,dx be the energy of the primes. Under the Riemann hypothesis (RH) and simple zeros its slope is CB=2+γE−log⁡4πC_B=2+\gamma_E-\log4\pi (Cram\'er). We study the next terms. Under RH, simple zeros and an additional spacing condition (H∗^*), I(X)=CBlog⁡X+K+Φ(log⁡X)+O(X−1/2)I(X)=C_B\log X+K+\Phi(\log X)+O(X^{-1/2}), where Φ\Phi is an absolutely convergent almost periodic sum over pairs of zeros. The constant has a closed form without zeros, K=12CB2−CB−σ2+2(1+γE)log⁡2π−(log⁡4π−1)2−1+2∑nΛ(n)φ(1/n)K=\frac12C_B^2-C_B-\sigma_2+2(1+\gamma_E)\log2\pi-(\log4\pi-1)^2-1+2\sum_n\Lambda(n)\varphi(1/n), with σ2=∑ρρ−2\sigma_2=\sum_\rho\rho^{-2} and φ(y)=y−artanh⁡y−y2log⁡(1−y2)\varphi(y)=y-\operatorname{artanh}y-\frac y2\log(1-y^2); under RH, K=2.512479790006…K=2.512479790006\ldots, certified to 6⋅10−136\cdot10^{-13} in interval arithmetic. Under RH and simple zeros alone, KK is the Ces\`aro mean in log⁡X\log X of I(X)−CBlog⁡XI(X)-C_B\log X if and only if ∑0<∣γ−γ′∣<ε∣ρρ′∣−1=o(ε)\sum_{0<|\gamma-\gamma'|<\varepsilon}|\rho\rho'|^{-1}=o(\varepsilon): a pair of zeros at distance λ\lambda acts like a double zero for log⁡X≪1/λ\log X\ll1/\lambda. Under (H∗^*), I(X)−CBlog⁡XI(X)-C_B\log X has a limiting logarithmic distribution with mean KK and variance VV, an explicit double sum over zeros under linear independence, whose factors we check on finite sets of zeros; numerically V=1.2502⋅10−5V=1.2502\cdot10^{-5} under LI. The primes up to 10910^9 agree with the zero side to 1.3⋅10−51.3\cdot10^{-5} (r.m.s.) and give K=2.512484K=2.512484. In the random models of the primes and of μ\mu that we examine the median energy is 88 to 150150 times larger. A Gaussian-window identity isolates the principal mode of each zero in the prime signal: a closed ellipse on the line, an expanding spiral off it. A final section assembles the slope, the intercept and the oscillation as one calibrated instrument, the energy gauge, with a multiplicity-meter reading of the slope and a ledger reading of the intercept, and runs it on the primes to 10810^8 beside 3838 zeros computed from scratch.

Author comments: 25 pages, 7 figures. Part 6 of the series "Cross-Energy of Dirichlet Partial Sums". Main results: the second-order law I(X) = C_B log X + K + Phi(log X) + O(X^(-1/2)) (Theorem 5), the closed form of K without zeros (Proposition 8) and the certified value K = 2.512479790006 +- 6e-13 under RH (Corollary 9). Ancillary Python scripts (NumPy, SciPy, mpmath, python-flint) reproduce the tables, figures and the certified value.

Provenance statement

Derived from Part 6 of the author's series Cross-Energy of Dirichlet Partial Sums (Libro_RH_v2, November 2026), revised as a standalone paper. All results, proofs and numerics are the author's; computations were done in Python with the scripts in the ancillary files. An AI assistant (Claude, Anthropic) helped with editing, LaTeX and code.

References

  1. A. Akbary, N. Ng, M. Shahabi, Limiting distributions of the classical error terms of prime number theory, Q. J. Math. 65 (2014), 743--780.
  2. R. P. Brent, D. J. Platt, T. S. Trudgian, The mean square of the error term in the prime number theorem, J. Number Theory 238 (2022), 740--762.
  3. P. Caceres, The mean-square prime energy: constant term, limiting distribution and variance of its fluctuations, preprint, 2026.
  4. H. Cramér, Ein Mittelwertsatz in der Primzahltheorie, Math. Z. 12 (1922), 147--153.
  5. H. Cramér, On the order of magnitude of the difference between consecutive prime numbers, Acta Arith. 2 (1936), 23--46.
  6. H. Davenport, Multiplicative Number Theory , 3rd ed., Graduate Texts in Mathematics 74, Springer, 2000.
  7. H. Davenport, H. Heilbronn, On the zeros of certain Dirichlet series I, II, J. London Math. Soc. 11 (1936), 181--185 and 307--312.
  8. A. Denjoy, L'hypothèse de Riemann sur la distribution des zéros de ζ(s)\zeta(s), reliée à la théorie des probabilités, C. R. Acad. Sci. Paris 192 (1931), 656--658.
  9. A. Granville, Harald Cramér and the distribution of prime numbers, Scand. Actuar. J. 1995, no. 1, 12--28.
  10. A. J. Harper, Moments of random multiplicative functions, I: low moments, better than squareroot cancellation, and critical multiplicative chaos, Forum Math. Pi 8 (2020), e1.
Show all 38 referencesShow fewer references
  1. A. E. Ingham, The Distribution of Prime Numbers , Cambridge University Press, 1932.
  2. F. Johansson, Arb: efficient arbitrary-precision midpoint-radius interval arithmetic, IEEE Trans. Comput. 66 (2017), 1281--1292.
  3. P. Caceres, The cross-energy of Dirichlet partial sums: from the energy law of the primes to large values of Dirichlet polynomials, preprint, 2026.
  4. H. L. Montgomery, R. C. Vaughan, Hilbert's inequality, J. London Math. Soc. (2) 8 (1974), 73--82.
  5. J. B. Rosser, L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962), 64--94.
  6. B. Rodgers, T. Tao, The de Bruijn--Newman constant is non-negative, Forum Math. Pi 8 (2020), e6.
  7. E. C. Titchmarsh, The Theory of the Riemann Zeta-Function , 2nd ed., revised by D. R. Heath-Brown, Oxford University Press, 1986.
  8. T. 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.
  9. A. Wintner, Random factorizations and Riemann's hypothesis, Duke Math. J. 11 (1944), 267--275.
  10. A. Wintner, On the asymptotic distribution of the remainder term of the prime-number theorem, Amer. J. Math. 57 (1935), 534--538.
  11. P. Caceres, The C-transform and the cross-energy, preprint, 2026.
  12. P. Caceres, Zeros of truncations: spirals, sections and the circles of the primes, preprint, 2026.
  13. P. Caceres, The energy of the primes, preprint, 2026.
  14. P. Caceres, Multiplicative resonance and large values of Dirichlet polynomials, preprint, 2026.
  15. P. Caceres, The Euler product inside the critical strip, preprint, 2026.
  16. P. Caceres, A two-sided criterion for the Riemann hypothesis from weighted prime sums, verified up to 2⋅10292\cdot10^{29}, preprint, 2026; an earlier version is hexagon:2610.00661.hexagon
  17. P. Caceres, One constant, three mirrors: B^=1+γE2−12log⁡4π\widehat B=1+\frac{\gamma_E}2-\frac12\log4\pi from the zeros, from the primes, and from the Möbius sawtooths, preprint, 2026.
  18. P. Caceres, The Euler cross-energy, Weil positivity and a one-variable form of the Riemann hypothesis, preprint, 2026.
  19. P. Caceres, The margin as W−EW-E, a Hodge index for the integers, preprint, 2026.
  20. P. Caceres, The Euler--Caceres bound, preprint, 2026.
  21. P. Caceres, The energy of the Chebyshev race: an explicit unconditional floor for the prime race between the lanes 6k±16k\pm1, preprint, 2026.
  22. P. Caceres, Controls for the Riemann hypothesis: Davenport--Heilbronn, Beurling systems and function fields, preprint, 2026.
  23. P. Caceres, The cross-energy of Dirichlet partial sums and the zeros of the Riemann zeta function, consolidated paper, Hexagon preprint hexagon:2610.00161v2 (2026); Zenodo doi:10.5281/zenodo.23243641. (Its content is divided among Parts 1, 2, 5, 17 and 41 of the series.)hexagonDOI
  24. P. Caceres, The Weil window: a two-sided instrument on the cross-energy's test functions, preprint, 2026.
  25. P. Caceres, The Gaussian gauge of the Weil criterion: the landscape as a phase-space symbol, anti-Wick rigidity, and a two-sided detector, preprint, 2026.
  26. P. Caceres, The recursive certificate: Levinson chains of the cross-energy mold, an exhaustion-detection theorem, and the reach of the primes, preprint, 2026.
  27. P. Caceres, The Hankel gauge: Matiyasevich's moments, Lehmer's sums, and a graded positivity instrument for the Riemann hypothesis, preprint, 2026.
  28. P. Caceres, The antiphase lock: the mutual information of prime blocks and the zero-free band, preprint, 2026.

Version history

  1. v1 · 25 pagesSubmitted by Pedro Caceres25 pages, 7 figures. Part 6 of the series "Cross-Energy of Dirichlet Partial Sums". Main results: the second-order law I(X) = C_B log X + K + Phi(log X) + O(X^(-1/2)) (Theorem 5), the closed form of K without zeros (Proposition 8) and the certified value K = 2.512479790006 +- 6e-13 under RH (Corollary 9). Ancillary Python scripts (NumPy, SciPy, mpmath, python-flint) reproduce the tables, figures and the certified value.CurrentNov 24, 2026