Proth primality certificate from a single modular power
ProvedErdos287.proth_prime_certificateegyptian-fractionserdos-problemsnumber-theory
Let be natural numbers with . Put . If , then is prime.
Preamble
import Mathlib
Formal statement
theorem Erdos287.proth_prime_certificate (k e g : ℕ) (hk : 0 < k) (hsmall : k < 2 ^ (e + 1))
(hg : (g : ZMod (k * 2 ^ (e + 1) + 1)) ^ (k * 2 ^ e) = -1) :
(k * 2 ^ (e + 1) + 1).Prime := by sorry
Source
Proth, Théorèmes sur les nombres premiers, Comptes rendus 87 (1878), 926–927. https://fr.wikisource.org/wiki/Page:Comptes_rendus_hebdomadaires_des_séances_de_l’Académie_des_sciences,_tome_087,_1878.djvu/932. Application to Erdős Problem 287.