Lewati ke konten
Number Buffet

Celah prima

Jarak antara bilangan prima yang berurutan: 1, 2, 2, 4, 2, 4, 2, 4, 6 — termasuk celah yang memecahkan rekor.

OEIS A001223 · 3 menit baca

Pengaturan

Prasetel cepat

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.

Setel tampilan

Pilih dulu salah satu prasetel di samping gambar — kendali ini menyesuaikannya.

Frame

A border drawn inside the edge of the image.

Lanjutan

Hasil

30 nilai

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, 2, 4, 2, 4, 14

Largest gap here: 14, the run of composites after 113. Average gap across these 30 steps: 4.17. 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.


Buat gambar

Aktifkan JavaScript untuk memberi gaya pada angka-angka ini dan mengunduhnya sebagai gambar. Nilainya sendiri sudah terdaftar di atas.

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.

Artikel latar belakang di bawah belum diterjemahkan dan ditampilkan dalam bahasa Inggris.

Tentang celah prima

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.

Sifat utama

  • 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.

Di mana muncul

  • 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.

Cara memakai generator ini

Nilai yang dihasilkan muncul di bagian atas, dengan tombol salin di sebelahnya. Untuk menjadikannya gambar, pilih tampilan dari gaya di bawah Buat gambar, tentukan ukuran ekspor, lalu unduh sebagai PNG, JPEG, atau WebP. Semuanya digambar di peramban, jadi tidak ada yang kamu hasilkan dikirim ke server.

Bilah alamat ikut berubah saat kamu bekerja, jadi tautannya selalu menghasilkan persis apa yang kamu lihat — berguna untuk membagikan barisan tertentu atau menyimpan sebuah pengaturan. Pakai Salin untuk mengambil nilainya sebagai teks biasa, atau Ekspor data untuk CSV, JSON, NDJSON, SQL, dan XML.

Sumber

Ringkasan sejarah di halaman ini bersandar pada rujukan berlisensi terbuka yang didaftar di atas. Menemukan kekeliruan? Beri tahu kami dan akan kami perbaiki.