Wieferich and Mirimanoff primes #
A Wieferich prime satisfies 2^(p-1) ≡ 1 [MOD p²]; a Mirimanoff prime satisfies
3^(p-1) ≡ 1 [MOD p²]. As of 2025, the only known Wieferich primes are 1093 and 3511;
the only known Mirimanoff primes are 11 and 1006003.
The main result wieferich_mirimanoff shows that no prime below 6000 is simultaneously
Wieferich and Mirimanoff. This is used in miller_rabin_squarefree to rule out
squarefree pseudoprimes below 36 million (to bases 2 and 3).
Instances For
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
We check odd numbers up to 6000 in the classes 1%6 and 5%6 #
theorem
wieferich_mirimanoff₁
(n : ℕ)
:
n < 6000 → n % 6 = 1 → (wieferichKR n).not'.or' (mirimanoffKR n).not' = true