← All papers
First page of A Vanishing Lower Ratio for Primes of the Form $n^2+s^2$

A Vanishing Lower Ratio for Primes of the Form $n^2+s^2$

Sheikh Azizul Hakim

math.NT Nov 27, 2026 · v1
A Lean 4 formal disproof of the OEIS A069004 conjecture, publicly released on GitHub, motivated the construction; the paper's stronger asymptotic proof is not formalized.
For an integer $n\ge 2$, let $a(n)$ count the integers $s$ with $1\le s<n$ for which $n^2+s^2$ is prime. Let $π(n)$ count the primes at most $n$. The lower bound $a(n)\geπ(n)/5$ was conjectured in OEIS A069004. A proof is given that the ratio $a(n)/π(n)$ comes arbitrarily close to zero for infinitely many values of $n$. The construction chooses $n$ divisible by many primes congruent to $3$ modulo $4$. The associated large-sieve estimate yields the claimed result through an Euler product, Karamata's Tauberian theorem, and the prime number theorem.

OEIS A069004 conjectured that a(n), the number of s in [1,n) with n^2+s^2 prime, satisfies a(n) >= π(n)/5 for all n>1. The paper aims to disprove this, and in a stronger form.

Take n = 2^r M, where M is a product of primes congruent to 3 mod 4, so that each such prime excludes the residue class s ≡ 0. A large-sieve bound is paired with an asymptotic for the sieve denominator, obtained via an Euler product, Karamata's Tauberian theorem and the prime number theorem. The construction was motivated by a Lean 4 formal disproof that uses Selberg's sieve with explicit bounds and passed an automated proof check in the Open Math Agents project.

The ratio a(n)/π(n) has limit inferior zero, so infinitely many counterexamples to the conjecture exist. The original Lean proof gives an explicit counterexample with threshold B > 200000. The new asymptotic argument is not itself formalized in Lean.