Generate Perfect Numbers

Generate perfect numbers — rare integers that equal the sum of their proper divisors. The first four are 6, 28, 496, and 8128. Connected to Mersenne primes via Euclid's formula.

Options
Perfect Numbers Generator Options
Start generating perfect numbers from this value.
How many perfect numbers to generate?
Perfect numbers separator.
(Newline \n by default.)
Output (Perfect Numbers)

What It Does

Generate perfect numbers — rare integers that equal the sum of their proper divisors. The first four are 6, 28, 496, and 8128. Connected to Mersenne primes via Euclid's formula.

How It Works

Generate Perfect Numbers produces new output from rules, parameters, or patterns instead of editing an existing document. That makes input settings more important than input text, because the settings are what define the shape of the result.

Generators are only as useful as the settings behind them. When the output seems off, check the count, range, delimiter, seed values, or pattern options before judging the result itself.

All processing happens in your browser, so your input stays on your device during the transformation.

Common Use Cases

  • Study one of the oldest problems in mathematics
  • Explore Mersenne prime connections
  • Generate reference values for number theory
  • Create educational materials about perfect numbers
  • Research divisor sum properties

How to Use

  1. Specify how many perfect numbers to generate.
  2. Click Generate.
  3. View perfect numbers with their divisor decomposition.
  4. Copy results.

Features

  • Generates known perfect numbers
  • Shows complete divisor lists
  • Displays the Mersenne prime connection
  • Shows Euclid's formula: 2^(p-1) × (2^p - 1)
  • Mathematical notation

Examples

Below is a representative input and output so you can see the transformation clearly.

Input
Up to: 500
Output
6 28 496

Edge Cases

  • Very large inputs can still stress the browser, especially when the tool is working across many numbers. Split huge jobs into smaller batches if the page becomes sluggish.
  • Empty or whitespace-only input is technically valid but may produce unchanged output, which can look like a failure at first glance.
  • If the output looks wrong, compare the exact input and option values first, because Generate Perfect Numbers should be repeatable with the same settings.

Troubleshooting

  • Unexpected output often means the input is being split or interpreted at the wrong unit. For Generate Perfect Numbers, that unit is usually numbers.
  • If a previous run looked different, check for hidden whitespace, changed separators, or a setting that was toggled accidentally.
  • If nothing changes, confirm that the input actually contains the pattern or structure this tool operates on.
  • If the page feels slow, reduce the input size and test a smaller sample first.

Tips

Perfect numbers are extremely rare. Only 51 are known as of 2024, and all are even. Whether an odd perfect number exists is one of the oldest unsolved problems in mathematics.

Perfect Numbers

A perfect number equals the sum of its proper divisors. 6 = 1+2+3. 28 = 1+2+4+7+14. These numbers have fascinated mathematicians since ancient Greece. Euclid proved that 2^(p-1) × (2^p-1) is perfect whenever 2^p-1 is prime (a Mersenne prime). Euler proved that all even perfect numbers have this form.

Rarity

Perfect numbers are extraordinarily rare. The first four — 6, 28, 496, 8128 — were known to the ancient Greeks. The fifth, 33,550,336, was not discovered until the 15th century. Each new perfect number requires finding a new Mersenne prime, which is a major computational achievement.

Frequently Asked Questions

How many perfect numbers are known?

As of 2024, 51 perfect numbers are known. Each corresponds to a Mersenne prime.

Are there odd perfect numbers?

None have been found. It remains one of the oldest open problems in mathematics — no one has proved they exist or that they don't.

What is the connection to Mersenne primes?

Every even perfect number has the form 2^(p-1) × (2^p-1) where 2^p-1 is a Mersenne prime. Finding new perfect numbers requires finding new Mersenne primes.

Why are they called perfect?

Ancient Greek mathematicians considered a number 'perfect' if it was neither excessive (abundant) nor deficient but exactly equal to the sum of its parts (divisors).

How large is the largest known perfect number?

The 51st known perfect number has over 49 million digits. It was found in 2024.

Are there infinitely many perfect numbers?

Unknown. If there are infinitely many Mersenne primes, then there are infinitely many even perfect numbers. Both remain unproven.