Let P(a,n) denote the least prime congruent to a modulo n. Since the generalised Riemann hypothesis for Dirichlet L-functions is now known, P(a,n)≪(φ(n)log n)2, but a bound max(a,n)=1P(a,n)≪ n2-δ with a fixed δ>0 is not known for all large n. We show, without using the generalised Riemann hypothesis, that there are absolute constants C,δ>0 such that, in every sufficiently large dyadic interval, more than 58.7% of the integers n satisfy max(a,n)=1P(a,n)≤Cn2-δ. The proof combines Maynard's theorem on primes in all residue classes to large moduli that have a conveniently sized factor with a computer-assisted lower bound, more than 58.71%, for the proportion of integers n having a divisor d with log d/log n in [0.142858,0.199999], a compact subinterval of (1/7,1/5). That bound is obtained from the Donnelly–Grimmett stick-breaking description of the prime factors of a random integer, and an upper bound of 59.56% for the proportion of integers with a divisor in [n1/7,n1/5] shows that the divisor condition itself cannot give much more. Both numerical bounds have also been proved in Lean 4 with Mathlib, and so have both theorems, from the theorems of Maynard and of Donnelly and Grimmett taken as hypotheses.
The mathematical arguments and computer programs in this paper were developed by Astra (GPT-6.2 Astra, OpenAI). Fable (Fable 5.2, Anthropic) worked throughout as a second model: it proposed alternative approaches, reviewed arguments and raised objections. The manuscript was prepared from the project's research records with Claude (Anthropic). All computations were re-run before release, and the programs and certificates are available at https://github.com/charlieoneill11/maths-releases.
Charles O'Neill proposed the problem because the generalised Riemann hypothesis for Dirichlet L-functions, now a theorem, gives P(a,n)≪(φ(n)log n)2, and asked whether the quadratic exponent could be beaten. He also proposed aiming first for averaged statements with a quantified exceptional set, which is the form of Theorem 1. The argument that succeeded for most moduli turned out not to need the generalised Riemann hypothesis. Charles O'Neill has checked the arguments and takes full responsibility for the correctness of the results.
@misc{least-prime-ap-2026,
author = {O'Neill, Charles and Kirkby, Max and {Astra} and {Fable}},
title = {Primes below {$n^{2-\delta}$} in every residue class, for a majority of moduli},
year = {2026},
month = nov,
howpublished = {\url{https://charlesponeill.com/maths-releases/least-prime-ap/}},
note = {Preprint. Programs and data: \url{https://github.com/charlieoneill11/maths-releases/tree/main/least-prime-ap}},
}