Skip to content
Number Buffet

First 5 mersenne primes

3, 7, 31, 127, 8191

Settings

Quick presets

Only 52 Mersenne primes have ever been found, so 52 is the ceiling.

1 is 2^2 - 1 = 3. Set 48 to begin at the 48th known Mersenne prime.

Full decimal form switches to 2^p - 1 once a prime is too long to print.

Group digits as 2,147,483,647.

Fine-tune the look

Pick a preset next to the image first — these controls adjust it.

Frame

A border drawn inside the edge of the image.

Advanced

Results

5 values

3, 7, 31, 127, 8191


Make an image

Turn on JavaScript to style and download these numbers as an image. The values themselves are listed above.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

What are the first 5 mersenne primes?

The first 5 mersenne primes are:

3, 7, 31, 127, 8191

How mersenne primes work

The full explainer — where mersenne primes come from, what they are used for and how each term is worked out — is on the generator page.

Read about mersenne primes

Other lengths

Sources