Measure prime spacing within any interval using analysis. Compare records, merits, counts, and local extremes. Find standout gaps fast with clean tables and charts.
| Range Start | Range End | Highlight Threshold | Top Rows | Typical Use |
|---|---|---|---|---|
| 2 | 1,000 | 10 | 12 | Quick classroom exploration of early prime spacing. |
| 1,000 | 50,000 | 20 | 15 | Study how larger primes create wider gaps. |
| 100,000 | 300,000 | 30 | 20 | Compare local records within a denser research window. |
| 900,000 | 1,100,000 | 40 | 25 | Inspect larger standout gaps near one million. |
gi = pi+1 - pi
max(gi)
Average Gap = (g1 + g2 + ... + gn) / n
Merit = g / ln(p)
Density = Number of Primes / Interval Width
A prime gap is the difference between two consecutive prime numbers. For example, the gap between 23 and 29 is 6 because no other primes lie between them.
It means the widest spacing between consecutive primes found inside your chosen interval. The tool reports the gap size and the exact prime pair where it first appears.
As numbers grow, primes become less frequent on average. That wider spacing tends to produce larger gaps, although the pattern remains irregular and cannot be predicted exactly.
Merit compares the observed gap to the natural logarithm of the lower prime. It helps judge whether a gap is unusually large relative to where it occurs.
No. It measures gaps only between consecutive primes found inside the interval you entered. Boundary primes outside that interval are not added to the calculations.
Twin primes differ by 2, cousin primes differ by 4, and sexy primes differ by 6. The calculator counts how many of each appear in your selected interval.
The limit keeps the page responsive and prevents heavy memory use during prime generation, chart creation, and export building, especially on shared hosting environments.
Use CSV when you want spreadsheet analysis or further sorting. Use PDF when you want a printable report or a quick shareable summary of the interval.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.