Skip to content
Number Buffet

First 25 prime gaps

1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, 2, 6, 4, 2, 6, 4, 6, 8, 4

Largest gap here: 8, the run of composites after 89. Average gap across these 25 steps: 3.96. Near x the average runs at about ln x. The leading 1, from 2 to 3, is the only odd gap there is: every prime after 2 is odd, so every later gap is even.

Settings

Quick presets

A gap is the difference between one prime and the next, so n gaps need n+1 primes.

The first gap listed is the one beginning at the smallest prime at or above this number.

Large gaps are rare: nothing bigger than 154 occurs below ten million, so a high threshold may find nothing inside the range one request sieves.

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

25 values

1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, 2, 6, 4, 2, 6, 4, 6, 8, 4

Largest gap here: 8, the run of composites after 89. Average gap across these 25 steps: 3.96. Near x the average runs at about ln x. The leading 1, from 2 to 3, is the only odd gap there is: every prime after 2 is odd, so every later gap is even.


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 25 prime gaps?

The first 25 prime gaps are:

1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, 2, 6, 4, 2, 6, 4, 6, 8, 4

How prime gaps work

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

Read about prime gaps

Other lengths

Sources