본문으로 이동
Number Buffet

소수 간격

이웃한 소수 사이의 거리: 1, 2, 2, 4, 2, 4, 2, 4, 6 — 기록을 세운 간격도 함께.

OEIS A001223 · 3분 분량

설정

빠른 설정

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.

모양 미세 조정

먼저 이미지 옆의 설정을 고르세요. 아래 조절기가 그것을 다듬습니다.

Frame

A border drawn inside the edge of the image.

고급

결과

30개 값

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.


이미지 만들기

이 숫자를 꾸며 이미지로 내려받으려면 자바스크립트를 켜세요. 값 자체는 위에 나열되어 있습니다.

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.

아래의 배경 설명은 아직 번역되지 않아 영어로 표시됩니다.

소수 간격 소개

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.

주요 성질

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

등장하는 곳

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

이 생성기 사용법

생성된 값은 위쪽에 표시되고 옆에 복사 단추가 있습니다. 이미지로 만들려면 이미지 만들기의 스타일에서 모양을 고르고, 내보내기 크기를 정한 뒤 PNG·JPEG·WebP로 내려받으세요. 모두 브라우저에서 그려지므로 생성한 내용이 서버로 전송되지 않습니다.

작업하는 동안 주소창이 갱신되므로, 링크는 항상 지금 보이는 상태를 그대로 재현합니다. 특정 수열을 공유하거나 설정을 저장해 두기에 좋습니다. 값을 일반 텍스트로 가져가려면 복사를, CSV·JSON·NDJSON·SQL·XML이 필요하면 데이터 내보내기를 사용하세요.

출처

이 페이지의 역사적 설명은 위에 나열한 공개 라이선스 자료를 바탕으로 합니다. 잘못된 내용을 발견하셨나요? 알려주시면 바로잡겠습니다.