The Top-20 Prime Gaps

Record tables below:
Top-20 merits
Top-20 gaps with merit above 10
Top-20 gaps with merit above 20
Gaps which are the largest with at least that merit
On subpages:
Gaps which are among the 20 largest with at least that merit
Maximal prime gaps

Definitions for this site:
There is a prime gap with positive integers p1 and p2 as end points, if p1 < p2 are consecutive primes (all intermediate numbers are composites). Some people define p1+1 and p2-1 to be the end points.
The size of the prime gap is p2 - p1. Some people define it to be one less.
The merit of the prime gap is size / ln p1, where ln is the natural logarithm. Some people use  p2 or a number between p1 and p2, but the difference is microscopic for large primes.

This site requires that all numbers inside a listed prime gap have been proved to be composite, but the end points are not required to be proven primes. If they are not proven then they must be probable primes, also called PRP's. Specifically they must have passed at least 5 Miller-Rabin tests or Fermat PRP tests with different bases, or stronger PRP tests.
A PRP can loosely speaking be considered "almost certainly" prime, based on statistical properties of PRP tests, but there is a small risk that a PRP is actually composite (very small for large PRP's or many PRP tests). In that case, the gap listed here would just be part of an even larger prime gap which would still qualify for the tables, possibly at a better position. PRP's are accepted here and on some other prime gap pages for this reason, although PRP's are often not accepted in other contexts, e.g. lists of the largest known primes.
Proven primes are preferred here when practical, but prime gap searches usually produce PRP's which are not easily provable when the PRP is large. If the whole top-20 table with merit above 10 or 20 is PRP's then the single largest gap with proven end points is added without rank.

The average prime gap near an integer N is approximately ln N. The merit indicates the relative size of a prime gap, compared to the approximate average for that size primes. This site only accepts prime gaps with merit above 10.0 (and so, in a loose sense, the gap must be at least 10 times larger than is typical). At the opposite end, the smallest known merit as of 2009 is achieved for the largest known twin prime, 65516468355*2^333333+/-1 with 100355 digits and merit 0.000008655, found by (SG Grid), Peter Kaiser, Keith Klahn, Twin Prime Search, PrimeGrid, NewPGen, tpsieve, LLR.

Thomas R. Nicely has composed tables of First occurrence prime gaps and first known occurrence prime gaps. These tables include most or all prime gaps in the tables below, and many more. He uses the same definitions and his tables may sometimes be more up to date than mine.

Please mail me with new candidates for the tables, or corrections if you think there are errors. Indicate whether the end points are proven primes and give a simple expression if possible. When multiple gaps are submitted, Nicely's format is preferred. I will strive to update within 2 days of receiving a submission. If a gap is only submitted to Nicely then it should eventually turn up here but it may take a while.

The person running a program is credited as discoverer. If a specialized prime gap program is used then the programmer is listed afterwards, when known. A general program (not designed for large prime gaps) such as a sieve, PRP tester or primality prover is usually not mentioned. The original top-20 page and Nicely's site do not mention these programs and this site follows what might be called the prime gap practice.
For the record: All gaps involving me (Jens K. Andersen) used my own sieve and either the GMP library (usually below 1100 digits) or PrimeForm/GW for PRP testing. Marcel Martin's Primo proved all proven end points, except the gap of 337446 with 7996-digit primes which were proved by François Morain with fastECPP.

In 1931 E. Westzynthius proved there are arbitrarily large merits, i.e. for any m there exist gaps with merit > m.
A rough heuristical estimate which may deteriorate for large m indicates around 1 in em prime gaps has merit > m. e10 ~= 20000, e20 ~= 5·108, e30 ~= 1013. It is possible to greatly increase these odds in gap searches among carefully selected large numbers, by using modular equations to ensure unusually many numbers with a small factor. Unfortunately the best methods produce numbers with no simple expression.
There are usually only few prime gaps with simple expressions for the end points among the 20 largest gaps for any merit. However, the single largest gap with "basic" expression and merit above 10 or 20 is listed in those tables, without rank if outside the top-20. A basic expression is here defined as maximum 25 characters, all taken from 0123456789+-*/^( ). Primorial and factorial are not allowed since they can be used to ensure many small factors, and the idea of the basic expression record is partly to avoid special prime gap methods.

Big decimal expansions are in a separate file, or will be available by e-mail request. P838 means 838-digit end points which are proven primes. PRP43429 means one or two PRP end points with 43429 digits. The digit count is for the gap start p1 if there is a difference.

 

Top-20 merits
Rank Size Gap start Merit Discoverer Year
1 1476 P19 = 1425172824437699411 35.3103 Tomás Oliveira e Silva 2009
2 1442 P18 = 804212830686677669 34.9757 Siegfried Herzog & Tomás Oliveira e Silva 2005
3 1370 P18 = 418032645936712127 33.7652 Donald E. Knuth 2006
4 1356 P18 = 401429925999153707 33.4536 Donald E. Knuth 2006
5 1358 P18 = 523255220614645319 33.2853 Siegfried Herzog & Tomás Oliveira e Silva 2007
6 1380 P19 = 1031501833130243273 33.2710 Siegfried Herzog & Tomás Oliveira e Silva 2007
7 1392 P19 = 1480032037939634731 33.2707 Tomás Oliveira e Silva 2009
8 1364 P19 = 1051140888051230423 32.8703 Siegfried Herzog & Tomás Oliveira e Silva 2007
9 1328 P18 = 352521223451364323 32.8681 Tomás Oliveira e Silva 2006
10 1360 P19 = 1153277647303540597 32.7008 Siegfried Herzog & Tomás Oliveira e Silva 2008
11 1344 P18 = 753917635380895597 32.6498 Siegfried Herzog & Tomás Oliveira e Silva 2006
12 1350 P19 = 1180351752204137089 32.4423 Tomás Oliveira e Silva 2008
13 1132 P16 = 1693182318746371 32.2825 Bertil Nyman 1999
14 1320 P18 = 605046330029026447 32.2391 Siegfried Herzog & Tomás Oliveira e Silva 2006
15 1340 P19 = 1954317467127310787 31.8165 Tomás Oliveira e Silva 2009
16 1322 P19 = 1106028436187467937 31.8191 Siegfried Herzog & Tomás Oliveira e Silva 2008
17 1308 P18 = 749565457554371299 31.7798 Siegfried Herzog & Tomás Oliveira e Silva 2006
18 1292 P18 = 494653394305448051 31.7113 Tomás Oliveira e Silva 2006
19 1272 P18 = 305405826521087869 31.5943 Tomás Oliveira e Silva 2006
20 1314 P19 = 1214119646547613277 31.5558 Tomás Oliveira e Silva 2008

 

Top-20 gaps with merit above 10
Rank Size Gap start Merit Discoverer Year
1 2254930 PRP86853 = 1122483511... 11.28     Hans Rosenthal & Jens K. Andersen 2004
2 1078180 PRP38007 = 50491*(87811#)/6 - 657714 12.32     Pierre Cami 2006
3 1001548 PRP43429 = 1913094464... 10.0157 Hans Rosenthal & Jens K. Andersen 2004
4 825658 PRP29317 = 51307*(67777#)/6 - 327676 12.23     Pierre Cami 2006
Largest gap with basic expression:
5 725724 PRP31103 = 10^31103 - 86991 10.13     Patrick De Geest 2008
6 724248 PRP26002 = 51257*(60037#)/6 - 411266 12.10     Pierre Cami 2007
7 675034 PRP21717 = 1872591871... 13.4997 Hans Rosenthal & Jens K. Andersen 2003
8 613744 PRP21718 = 2161936776... 12.2734 Hans Rosenthal & Jens K. Andersen 2003
9 565072 PRP21718 = 2080425850... 11.3001 Hans Rosenthal & Jens K. Andersen 2003
10 561186 PRP21718 = 1802254367... 11.2224 Hans Rosenthal & Jens K. Andersen 2003
11 506634 PRP21718 = 2054644885... 10.1315 Hans Rosenthal & Jens K. Andersen 2003
12 398370 PRP14173 = 10^14173 - 51197 12.21     Milton L. Brown 2007
13 366984 PRP10003 = 1240467652... 15.9346 Jens K. Andersen 2009
14 351526 PRP7984 = 15889*(18481#)/6 - 197044 19.12     Pierre Cami 2009
15 338396 PRP10003 = 8510377399... 14.6920 Torbjörn Alm & Jens K. Andersen 2004
16 338178 PRP10000 = 1016538985... 14.6883 Jens K. Andersen 2009
Largest gap with proven end points:
17 337446 P7996 = 1009461925... 18.3303 Torbjörn Alm, Jens K. Andersen, François Morain 2004
18 332322 PRP7984 = 19577*(18481#)/6 - 235964 18.08     Pierre Cami 2009
19 329970 PRP8009 = 9643*(18539#)/6 - 241796 17.89     Pierre Cami 2006
20 327272 PRP7984 = 13831*(18481#)/6 - 145686 17.80     Pierre Cami 2009

 

Top-20 gaps with merit above 20
Rank Size Gap start Merit Discoverer Year
1 172860 P3263 = 9960696085... 23.0071 Jens K. Andersen 2009
2 150846 P3263 = 6641012271... 20.0782 Jens K. Andersen 2009
3 146286 P2527 = 3137*(5879#)/210 - 43702 25.14     Pierre Cami 2009
4 122566 P2392 = 319*(5591#)/6 - 88188 22.25     Pierre Cami 2009
5 120728 PRP2584 = 2969*(6047#)/210 - 73166 20.30     Pierre Cami 2009
6 114554 P2227 = 5787178675... 22.3419 Torbjörn Alm & Jens K. Andersen 2007
7 109680 P2289 = 6457*(5387#)/6 - 51928 20.81     Pierre Cami 2009
8 106752 P2291 = 107*(5393#)/6 - 46834 20.24     Pierre Cami 2009
9 96070 P1974 = 8492140607... 21.1369 Torbjörn Alm & Jens K. Andersen 2007
10 83732 P1652 = 7992047777... 22.0136 Torbjörn Alm & Jens K. Andersen 2007
11 82238 P1447 = 3019*(3407#)/210 - 51236 24.69     Pierre Cami 2009
12 78966 PRP1529 = 2939*(3583#)/210 - 39502 22.44     Pierre Cami 2009
13 78016 P1443 = 3109*(3391#)/210 - 36970 23.48     Pierre Cami 2009
14 77910 P1632 = 6986866934... 20.7347 Jens K. Andersen 2004
15 73874 P1209 = 2347*(2833#)/210 - 29658 26.54     Pierre Cami 2009
16 73660 P1298 = 5141*(3041#)/6 - 27358 24.66     Pierre Cami 2009
17 73464 P1329 = 2129*(3121#)/6 - 48702 24.02     Pierre Cami 2009
18 72102 P1359 = 3847*(3209#)/210 - 19354 23.05     Pierre Cami 2009
19 71292 PRP1405 = 2351*(3319#)/210 - 22346 22.05     Pierre Cami 2009
20 70770 PRP1372 = 691*(3251#)/210 - 25306 22.40     Pierre Cami 2009
Largest gap with basic expression:
-- 31626 P669 = 2^2222 + 526517571153 20.53     Hans Rosenthal & Jim Fougeron 2007

 

Gaps which are the largest with at least that merit
Size Gap start Merit Discoverer Year
2254930 PRP86853 = 1122483511... 11.28     Hans Rosenthal & Jens K. Andersen 2004
1078180 PRP38007 = 50491*(87811#)/6 - 657714 12.32     Pierre Cami 2006
675034 PRP21717 = 1872591871... 13.4997 Hans Rosenthal & Jens K. Andersen 2003
366984 PRP10003 = 1240467652... 15.9346 Jens K. Andersen 2009
351526 PRP7984 = 15889*(18481#)/6 - 197044 19.12     Pierre Cami 2009
172860 P3263 = 9960696085... 23.0071 Jens K. Andersen 2009
146286 P2527 = 3137*(5879#)/210 - 43702 25.14     Pierre Cami 2009
73874 P1209 = 2347*(2833#)/210 - 29658 26.54     Pierre Cami 2009
7868 P114 = 5611925455... 30.0400 Torbjörn Alm & Jens K. Andersen 2004
1476 P19 = 1425172824437699411 35.3103 Tomás Oliveira e Silva 2009

 

gaps20nicely.txt contains the above gaps in Thomas R. Nicely's notation, but with full decimal expansions (may not display completely in some browsers) for primes with no short expression.

The Top-20 Prime Gaps for all merits contains a long list of the 20 largest known prime gaps with merit above m, for all m.
gaps20allnicely.txt contains those gaps in Nicely's notation.

Verifying the top-20 gaps with merit above 10 takes a long time due to the size and amount of the numbers. See Top 20 prime gap verifications for information about verifications.

Links:
Thomas R. Nicely's First occurrence prime gaps: http://www.trnicely.net/gaps/gaplist.html
Chris Caldwell's Prime Pages, The Gaps Between Primes: http://primes.utm.edu/notes/gaps.html
Eric Weisstein's Mathworld, Prime Gaps: http://mathworld.wolfram.com/PrimeGaps.html
Tomás Oliveira e Silva's Gaps between consecutive primes: http://www.ieeta.pt/~tos/gaps.html
Wikipedia's Prime gap: http://en.wikipedia.org/wiki/Prime_gap
Jens Kruse Andersen's
     First known prime megagap: http://users.cybercity.dk/~dsl522332/math/primegaps/megagap.htm
     Largest known prime gap: http://users.cybercity.dk/~dsl522332/math/primegaps/megagap2.htm
     A proven prime gap of 337446: http://users.cybercity.dk/~dsl522332/math/primegaps/gap337446.htm
Carlos Rivera's The Prime Puzzles & Problem Connection: Problem 46 . Holes and Crowds-I
William V. Wright's Cramer's conjecture: http://wvwright.net

This page is based on an original page by Paul Leyland using partially different notation.
The Top-20 Prime Gaps is now maintained by Jens Kruse Andersen, jens.k.a@get2net.dk   home
Last updated 11 November 2009