Generate Perfect Numbers
Quickly generate a list of perfect numbers. Runs entirely in your browser, so your data never leaves your device.
Output
The result appears here as you type.
How to use Generate Perfect Numbers
- 1. Set how many terms. Enter How many terms to decide how many perfect numbers to list. Perfect numbers are extremely rare, so even a small term count reaches well into the millions.
- 2. Set a separator. Choose Separator, a comma or newline, to shape the output for a plain list or spreadsheet column.
- 3. Copy the results. The tool finds numbers whose proper divisors sum exactly to the number itself, which are tied to Mersenne primes through Euclid's formula. Copy the list for your number theory reference.
When to use Generate Perfect Numbers
Generate Perfect Numbers lists integers whose proper divisors add up to exactly the number itself, like 6 or 28. Use it whenever a number theory lesson or check needs these rare and well-studied numbers without summing divisors by hand.
- Verifying a divisor sum by hand. A student checking that 6's proper divisors, 1, 2 and 3, sum to exactly 6 confirms their understanding of the definition before moving on to larger and less obvious examples like 28.
- Studying the connection to Mersenne primes. Someone learning Euclid's formula, which builds even perfect numbers directly from Mersenne primes, wants a verified list to check that each generated value matches the formula's prediction.
- Testing an aliquot sum function's edge cases. A developer who wrote a function to compute a number's aliquot sum tests it against known perfect numbers, where the function should report the sum as equal to the input exactly.
- Preparing a history-of-mathematics lesson. An instructor covering how ancient mathematicians classified numbers as deficient, perfect or abundant wants the classic perfect number examples printed out for a handout.
Examples
The first five perfect numbers
Output
6, 28, 496, 8128, 33550336
About the Generate Perfect Numbers tool
Generate Perfect Numbers runs as plain JavaScript in your browser tab, with no server behind it. Quickly generate a list of perfect numbers. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Math Tools section, 234 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 2 settings, including How many terms and Separator, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Generate Perfect Numbers free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Does the generator send anything to a server?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How do I get a different result?
Run the generator again. Each run is computed fresh on your device, and any options you change are applied to the next result immediately.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.