A composite solution has
ProvedLehmerTotient.cohen_hagis_boundnumber-theory
Let be composite, and suppose that divides . Then has at least fourteen distinct prime factors. This is a known theorem of Cohen and Hagis (1980), improving Lehmer's lower bound of seven prime factors.
Preamble
import Mathlib
Formal statement
namespace LehmerTotient
theorem cohen_hagis_bound {n : Nat} (hn : 1 < n)
(hcomp : ¬ Nat.Prime n) (h : Nat.totient n ∣ n - 1) :
14 ≤ (Nat.primeFactors n).card := by sorry
end LehmerTotient
Source
G. L. Cohen and P. Hagis, Jr., On the number of prime factors of n if φ(n) divides n−1, Nieuw Arch. Wisk. (3) 28 (1980), 177–185, https://zbmath.org/0436.10002
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.