Odd Perfect Numbers
A perfect number equals the sum of its proper divisors. Test any number to see whether it is perfect, deficient, or abundant. All known perfect numbers are even; whether an odd one exists is open.
Perfect! The proper divisors sum to exactly 28. Even perfect numbers match Euler’s form 2^(p−1)(2^p − 1).
All known perfect numbers are even: 6, 28, 496, 8128, …. Whether any odd perfect number exists is still open; any would have more than 1,500 digits.
Euler proved every even perfect number has the form 2^(p−1)·(2^p − 1) where 2^p − 1 is prime. For odd numbers the question is wide open — a classic problem from Euclid’s era that still resists proof.
What you are seeing
Sum all proper divisors of n (every divisor except n itself) and compare with n.
Equal means perfect, less means deficient, more means abundant.
Euler proved every even perfect number has the form 2^(p−1)(2^p − 1) where 2^p − 1 is prime.
Why it matters
No odd perfect number is known, and any would have over 1,500 digits. The problem is ancient, dating back to Euclid and Euler, and remains unsolved.
Complexity & details
Trial-division divisor sum is O(√n), enough for the inputs this demo accepts.
Frequently asked questions
What are the first perfect numbers?+
6 = 1+2+3, 28 = 1+2+4+7+14, 496, and 8128. All are even.
What is known about an odd one?+
It would have to satisfy strong necessary conditions (Euler’s form) and be enormous, but no contradiction rules it out entirely.