EditSafely

Generate Perfect Numbers

Create 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.

Options

How to use Generate Perfect Numbers

  1. 1. Choose the sequence length. Set How many terms to the count of perfect numbers you want, starting from the smallest, 6.
  2. 2. Understand what gets computed. A perfect number equals the sum of its own proper divisors; the tool finds each one using its known link to Mersenne primes, since perfect numbers grow extremely sparse and large.
  3. 3. Pick a separator. Set Separator to a comma or newline, since even a handful of terms already includes numbers with many digits like 33550336.
  4. 4. Copy the sequence. Copy the generated perfect numbers into a math lesson, research note or number theory reference list.

When to use Generate Perfect Numbers

Generate Perfect Numbers lists numbers whose divisors sum exactly to the number itself, a property known since antiquity and tied to Mersenne primes for every even case discovered so far. Use this tool to get the sequence without recomputing aliquot sums for every candidate up to each term.

  • Teaching the Euclid-Euler theorem. A number theory course covering the link between even perfect numbers and Mersenne primes hands students the first five perfect numbers to verify against the theorem's formula by hand.
  • Writing a trivia fact about 6 and 28. A math trivia newsletter wants to open with the first two perfect numbers, 6 and 28, and needs a quick reliable source rather than recalculating divisor sums manually.
  • Testing a perfect-number checker function. A developer wrote an isPerfect function for a coding kata and wants the first four known perfect numbers as test fixtures to confirm the function returns true correctly.

Examples

The first five perfect numbers

Output

6, 28, 496, 8128, 33550336

About the Generate Perfect Numbers tool

Generate Perfect Numbers is a free online tool that works entirely inside your web browser. Create a list of perfect numbers. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 194 Number utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

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.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.

Frequently asked questions

Does Generate Perfect Numbers cost anything?

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?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

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?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

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.