A prime ending in 1, 3, 7 or 9 above every bound
ProvedPrimeEndings.candidate_prime_aboveelementary-number-theoryprime-numberssieve-of-eratosthenes
For every there is a prime with (the least prime factor of ).
Preamble
import Definitions.Def_PrimeEndings_Defs import Mathlib open PrimeEndings
Formal statement
namespace PrimeEndings
theorem candidate_prime_above (n : ℕ) :
∃ p, p.Prime ∧ n < p ∧ (p % 10 = 1 ∨ p % 10 = 3 ∨ p % 10 = 7 ∨ p % 10 = 9) := by sorry
end PrimeEndingsSource
mfala22ss, A window form of the sieve of Eratosthenes on the residues prime to ten, with a machine-checked proof (2026), https://github.com/mfala22ss/prime-endings, Lean file lean/Solution.lean, `candidate_prime_above`
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number there exists a natural number such that
- is prime,
- , and
- .
In other words, there are arbitrarily large primes whose last decimal digit is , , or (the digit is not fixed; any one of the four suffices). No bundle definitions are used.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.