The prime factor is large
A prime p that divides n! + 1 is greater than n.
Shape: claim Lean: Blueprint.InfinitelyManyPrimes.prime_factor_gt
In words: for natural numbers n and p, if p is prime and p divides n! + 1, then n < p.
Prose audited: 2026-11-03, by a model on the maintainer's order, not a person's audit. Source: IX.20's step that the new prime cannot divide the unit (Joyce 1996), in the factorial variant where 2 to n leave remainder 1, so p > n (Wikipedia 2026 Euclid).
Audited: not yet
Statement
If p is prime and p divides n! + 1, then n < p.
Proof
- Suppose p ≤ n. Then p is one of the factors of n!, so p divides n!.
- Then p divides the difference (n! + 1) − n!, which is 1.
- A prime does not divide 1. So p > n.
See also
The theorem; uses the successor of a factorial, whose prime factor it bounds.