Removed endings contain no prime
ProvedPrimeEndings.removed_not_primeelementary-number-theoryprime-numberssieve-of-eratosthenes
No with last digit or is prime.
Preamble
import Definitions.Def_PrimeEndings_Defs import Mathlib open PrimeEndings
Formal statement
namespace PrimeEndings
theorem removed_not_prime (n : ℕ) (h5 : 5 < n)
(hd : n % 10 = 0 ∨ n % 10 = 2 ∨ n % 10 = 4 ∨ n % 10 = 5 ∨ n % 10 = 6 ∨ n % 10 = 8) :
¬ n.Prime := 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, `removed_not_prime`
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number : if and the last decimal digit of is or , i.e.
then is not prime. The hypothesis excludes the primes and , which have last digits and . No bundle definitions are used.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.