Leading Digits of Primes: Closed Forms to All Orders, Divergence and the Riemann Hypothesis
The leading digits of the primes do not follow Benford's law. Ohkubo and Strauch found their limit laws and Berger and Rahmatidehkordi the first-order term; we expand the proportions to every order in closed form, at every cutoff $N$. At decade endpoints $N = 10^K$ the expansion diverges: its coefficients are asymptotic to $(\log_{10}(1+1/d) - 1/9)\,n!/(\ln 10)^n$, so Benford's law minus the uniform law sets the size of the divergent tail. What the expansion leaves over is arithmetic. The digit proportions stay within $O(N^{-1/2+\varepsilon})$, for every $\varepsilon > 0$, of the expansion's logarithmic-integral model at every real cutoff if and only if the Riemann hypothesis holds; the converse uses cutoffs between decade endpoints, and at the endpoints alone we prove a partial converse. Without any hypothesis, $\max_d |π_d(10^K)/π(10^K) - 1/9| < 0.06/K$ for every $K \geq 15$, and the bound fails at $K = 14$. For the size-dependent law that Luque and Lacasa fitted, we derive the decade-endpoint limits of both constants, for primes and for zeta zeros, and prove that they differ by exactly $\ln 2π$ for every fixed nondegenerate moment estimator. Exact counts up to $9 \cdot 10^{18}$ confirm the expansion.
Authors
- James Mac Hyman (ORCID: https://orcid.org/0000-0001-5247-5794)
Publication Details
- Journal
- arXiv
- Published
- 2026-12-01
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint