L’article de fond ci-dessous n’est pas encore traduit et s’affiche en anglais.
À propos des écarts entre nombres premiers
Gaps were studied long before they were named. Joseph Bertrand's postulate of 1845 — that a prime always lies between n and 2n — is a statement about gaps, and Chebyshev proved it in 1852. The sharpest general tool arrived with the prime number theorem in 1896: the average gap near x is about ln x. That average says nothing whatsoever about any particular gap.
The extremes have been the interesting part. Erik Westzynthius proved in 1931 that gaps can be arbitrarily larger than the average, so the ratio g/ln p is unbounded. Erdős in 1935 and Rankin in 1938 sharpened that into a bound which then stood for more than seventy years; Erdős offered one of his cash prizes for improving Rankin's constant, and the problem finally fell in 2014 to two independent teams — Kevin Ford, Ben Green, Sergei Konyagin and Terence Tao on one side, James Maynard on the other.
From the other direction, Harald Cramér conjectured in 1936 that the gap following p is at most roughly (ln p)², which is far smaller than anything anyone has proved. The record for small gaps moved in April 2013, when Yitang Zhang showed that some gap below 70 million recurs infinitely often — the first finite bound of its kind. Maynard, Tao and the Polymath collaboration cut it to 246 within the year.
Record gaps have been tabulated, first by hand and later by machine, since the nineteenth century. The maximal gaps — each one larger than every gap before it — run 1, 2, 4, 6, 8, 14, 18, 20, 22, 34 and onwards, and there is no record gap of 10, 12 or 16. Gaps of those sizes certainly occur (139 to 149 is a gap of 10), but by the time they first appear a larger gap has already been seen. As of May 2026 the largest maximal gap known is 1,854, following the prime 101,412,319,996,363,309,069, found by Robert Smith using code by Brian Kehrig. It is only the 85th such record, and the list is conjectured to grow about as fast as 2 ln n.
Propriétés principales
- The gap from 2 to 3 is 1 — the only odd gap. Every prime after 2 is odd, so every later gap is even.
- The gaps between the first primes are 1, 2, 2, 4, 2, 4, 2, 4, 6, 2, 6, 4, 2, 4, 6, 6, …
- Gaps of 2, 4 and 6 have names of their own: twin primes, cousin primes and sexy primes.
- Two gaps of 2 occur back to back only at 3, 5, 7, because any three odd numbers two apart include a multiple of 3.
- Gaps are arbitrarily large: n!+2, n!+3, …, n!+n are all composite, which forces a gap of at least n somewhere.
- The average gap near x is about ln x, a consequence of the prime number theorem. Near one billion that average is close to 21.
- The record (maximal) gaps are 1, 2, 4, 6, 8, 14, 18, 20, 22, 34, 36, 44, 52, 72, 86, 96, 112, 114, 118, 132, 148, 154, … — the last of those occurring after 4,652,353.
- The first gap of 100 or more is the gap of 112 that follows 370,261.
Où on les rencontre
- Cryptographic key generation picks a random odd number and tests successive candidates until one is prime, so the gap structure sets the cost: roughly 350 odd candidates on average for each 1024-bit factor of a 2048-bit RSA key.
- Gapcoin was a cryptocurrency whose proof of work was the search for prime gaps of high merit; its network found the first gap with merit above 40, in 2017.
- The merit of a gap — its size divided by ln p — is how record hunters compare gaps found at wildly different scales. The largest merit on record as of 2026 is 42.5192, found by Mario Vojvoda.
- Gap searches double as stress tests for distributed computing and for big-integer libraries: the largest known gap between two proven primes runs to 1,113,106, between numbers of 18,662 digits.
Comment utiliser ce générateur
Les valeurs générées apparaissent en haut, avec un bouton de copie à côté. Pour en faire une image, choisissez un style sous Créer une image, sélectionnez une taille d’export et téléchargez en PNG, JPEG ou WebP. Tout est rendu dans votre navigateur : rien de ce que vous générez n’est envoyé à un serveur.
La barre d’adresse se met à jour au fil de votre travail : le lien reproduit donc toujours exactement ce que vous voyez — pratique pour partager une suite précise ou conserver une configuration. Utilisez Copier pour récupérer les valeurs en texte brut, ou Exporter les données pour du CSV, JSON, NDJSON, SQL ou XML.
Sources
- Prime gap — Wikipedia — CC BY-SA 4.0
- OEIS A001223 — Prime gaps: differences between consecutive primes — CC BY-SA 4.0
- OEIS A005250 — Record gaps between primes — CC BY-SA 4.0
- Bertrand's postulate — Wikipedia — CC BY-SA 4.0
- Cramér's conjecture — Wikipedia — CC BY-SA 4.0
Les résumés historiques de cette page s’appuient sur les références en licence ouverte listées ci-dessus. Vous avez repéré une erreur ? Dites-le nous et nous la corrigerons.