Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

An odd perfect number has at least three distinct prime divisors

Proved
OddPerfectNumber.three_distinct_prime_factors

by Gabewhigham · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

divisor-sumsnumber-theoryopen-problemperfect-numbers

Classical lower bound. If NNN is odd and perfect, then NNN has at least three distinct prime divisors: ω(N)≥3\omega(N) \ge 3ω(N)≥3, where ω\omegaω counts distinct primes.

The argument is elementary and quantitative. If N=∏ipiaiN = \prod_{i} p_i^{a_i}N=∏i​piai​​ then

σ(N)N=∏i1+pi+⋯+piaipiai<∏ipipi−1,\frac{\sigma(N)}{N} = \prod_i \frac{1 + p_i + \cdots + p_i^{a_i}}{p_i^{a_i}} < \prod_i \frac{p_i}{p_i - 1},Nσ(N)​=i∏​piai​​1+pi​+⋯+piai​​​<i∏​pi​−1pi​​,

and for at most two distinct odd primes the right-hand side is bounded by 32⋅54=158<2\tfrac{3}{2} \cdot \tfrac{5}{4} = \tfrac{15}{8} < 223​⋅45​=815​<2, so σ(N)=2N\sigma(N) = 2Nσ(N)=2N is impossible. This is the first step of the chain of lower bounds on ω(N)\omega(N)ω(N) that culminates in the present record ω(N)≥10\omega(N) \ge 10ω(N)≥10.

Formalized with ω(N)\omega(N)ω(N) as N.primeFactors.card.

Preamble
import Mathlib
Formal statement
namespace OddPerfectNumber

theorem three_distinct_prime_factors (n : ℕ) (hn : Nat.Perfect n) (hodd : Odd n) :
    3 ≤ n.primeFactors.card := by
  sorry

end OddPerfectNumber
Source
Classical; first stage of the Servais (1887) / Sylvester (1888) bounds. See https://en.wikipedia.org/wiki/Perfect_number#Odd_perfect_numbers .
Human review
  • Endorsed by Shuze Chen · Sep 8, 2026

  • Endorsed by Gabewhigham · Sep 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me