# 素数间隙

素数间隙是两个相邻素数之间那组连续合数；长度为 n 的间隙是一段 n − 1 个合数的序列，因此两个边界素数之差等于 n<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。有些作者则把间隙定义为相邻素数之差，即比合数段的长度大 1 的数<sup>[2](https://t5k.org/glossary/page.php?sort=PrimeGaps)</sup>。例如，在素数 89 和 97 之间，90 到 96 这些数构成一个长度为 7 的非素数间隙<sup>[3](https://planetmath.org/primegap)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 长度为 n 的间隙是相邻素数 p_k 与 p_{k+1} 之间一段 n − 1 个连续合数，且 p_{k+1} − p_k = n<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |
| 奇偶性 | 所有大于 1 的素数间隙都是偶数，因为 2 之后的每个素数都是奇数<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |
| 平均大小 | 由素数定理，直到 p_n 的平均间隙为 (p_n − 2)/(n − 1) ~ ln p_n<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |
| 无界性 | 存在任意大的间隙：对任意 n > 1，数 n! + 2, ..., n! + n 全是合数<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |
| 有界间隙定理 | 张益唐（2013）证明了无穷多对相邻素数之差小于 7 × 10<sup>7</sup>；梅纳德和 Polymath8 将该界降至 246<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup><sup> • </sup><sup>[4](https://www.cambridge.org/core/books/bounded-gaps-between-primes/introduction/1EB4C973AF612325EF4BC3467AF42B59)</sup> |
| 条件性界 | 假设埃利奥特–哈尔伯斯坦猜想成立，可得 H_1 ≤ 12；其广义版本给出 H_1 ≤ 6<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |
| 已知最大优值 | 41.9388，即一个 87 位素数之后长度为 8350 的间隙，由 Gapcoin 网络于 2017 年发现<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> |

## 基本性质

记 d_k = p_{k+1} − p_k 为相邻素数之差，则除 p_1 = 2 之后的第一个间隙外，d_k 总是偶数，因此所有大于 1 的素数间隙都是偶数<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。记号 p(n) 通常表示长度为 n 的间隙开始处的最小素数：p(n) 是素数，接下来的 n − 1 个数是合数，下一个素数是 p(n) + n，且没有更小的素数能开启这样的间隙<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

猜想每种偶数长度的间隙都出现无穷多次，但这一点仍未获证明<sup>[5](https://oeis.org/wiki/Prime_numbers)</sup>。2 和 3 之间长度为 1 的间隙是唯一的奇数间隙<sup>[5](https://oeis.org/wiki/Prime_numbers)</sup>。

## 平均大小与记录间隙

素数定理表明，x 附近的素数平均间隔约为 ln x<sup>[2](https://t5k.org/glossary/page.php?sort=PrimeGaps)</sup>。直到 p_n 的平均间隙为 (p_n − 2)/(n − 1) ~ ln p_n，尽管小间隙也反复出现，这一平均值仍无界增长<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

**最大间隙。** 最大素数间隙 G(N) 是以小于 N 的素数为起点的最大间隙的长度。其在 10 的幂处的值开头为 G(10^n) = 4, 8, 20, 36, 72, 114, 154, 220, 282, 354, 464, 540, 674, 804, 906, 1132, ...<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。扬和波特勒于 1989 年确定了直至 72,635,119,999,997 的素数间隙的首次出现，奈斯利于 1999 年扩展了最大间隙列表<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。对于寻找首次出现和最大间隙，已知的方法没有比穷举搜索更精巧的<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

间隙的优值将其长度与局部平均尺度相比较，即 (p_{n+1} − p_n)/ln p_n<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。截至 2026 年 7 月，已知最大优值为 41.9388，来自一个 87 位素数之后长度为 8350 的间隙，由 Gapcoin 网络于 2017 年发现<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。极大型构造间隙也为人们所知：10<sup>314</sup> − 1929 之后有一个长度为 4247 的间隙；2004 年，在两个各含 86,853 位的概率素数之间发现了一个长度为 2,254,930 的间隙<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

## 大间隙

任意长的间隙很容易构造。对任意 n > 1，数 n! + 2, n! + 3, ..., n! + n 全是合数，因为 n! + k 能被 k 整除，于是给出长度至少为 n − 1 的间隙<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。一个相关构造利用中国剩余定理，在 m + y 之下放置一段 y 个连续合数，其中 m 满足对所有小素数取模的选定剩余类条件<sup>[6](https://annals.math.princeton.edu/wp-content/uploads/annals-v183-n3-p04-p.pdf)</sup>。

定量下界则困难得多。记 ln_k 为 k 重嵌套对数，福特、格林、科尼亚金、梅纳德和陶哲轩于 2018 年证明了渐近下界

\[ G(T) \gg \frac{\ln T \cdot \ln_2 T \cdot \ln_4 T}{\ln_3 T}. \]

<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup> 2026 年，OpenAI 报告了更强的界 G(T) ≫ (ln T (ln_2 T)<sup>2</sup> ln_4 T)/(ln_3 T)<sup>2</sup>；该证明由阿列克谢耶夫在 Lean 中形式化，但截至 2026 年 9 月，尚未有对该论证的独立数学审查报告<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

## 小间隙与有界间隙定理

小间隙的进展用 Δ = liminf (p_{n+1} − p_n)/ln p_n 来衡量。若孪生素数猜想成立，则 Δ = 0，因为 d_n = 2 出现无穷多次将迫使该比值的下极限为零；这一条件是必要但不充分的，因为把 2 换成任意固定常数，同样的论证也成立<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。哈代和利特尔伍德于 1926 年在广义黎曼假设成立的条件下证明了 Δ ≤ 2/3；兰金在同一假设下将其改进为 3/5。1940 年，埃尔德什用筛法在无假设条件下证明了 Δ < 1，后来邦别里和达文波特、赫胥黎以及迈尔的工作到 1986 年将该界推进到 Δ ≤ 0.2486<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

**GPY 方法。** 在 2003 年的一次奥伯沃尔法赫会议上，戈德斯通和耶尔德勒姆提交了一个试图证明 Δ = 0 的证明；原证明有缺陷，但 2005 年一个新的证明确立了该结果，戈德斯通、平茨和耶尔德勒姆的工作表明，小于平均值的间隙出现无穷多次<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。桑达拉拉詹在美国数学研究所的一次研讨会上表明，θ = 1/2 是阻止 GPY 方法产生有界间隙的真正障碍<sup>[7](https://www.aimath.org/news/primegaps/primegaps_zhang.html)</sup>。

**张益唐的突破。** 2013 年，张益唐证明了第一个有限界：量 H_1 = liminf (p_{n+1} − p_n) 有限，且 H_1 < 7 × 10<sup>7</sup>，因此无穷多对相邻素数之差小于 7000 万<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup><sup> • </sup><sup>[8](https://annals.math.princeton.edu/2014/179-3/p07)</sup>。一个主要成分是邦别里–维诺格拉多夫定理的一个更强版本，适用于模没有大素数因子的情形<sup>[8](https://annals.math.princeton.edu/2014/179-3/p07)</sup>。詹姆斯·梅纳德基于塞尔伯格经典筛法的一个强变体，独立发展了一种多维筛法；陶哲轩几乎同时得到了类似结果<sup>[9](https://www.aimath.org/pastworkshops/primegaps2.html)</sup><sup> • </sup><sup>[10](https://mathworld.wolfram.com/BoundedGapsBetweenPrimes.html)</sup>。梅纳德–陶定理指出，对每个正整数 ℓ，存在一个可有效计算的 k_0，使得每个满足 k ≥ k_0 的容许 k 元组在无穷多个平移下至少含有 ℓ 个素数<sup>[11](https://kskedlaya.org/ant/chap-gpy.html)</sup>。

围绕这些方法组织的集体 Polymath8 项目将无条件界降至 H_1 ≤ 246，因此无穷多对相邻素数之差至多为 246<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup><sup> • </sup><sup>[4](https://www.cambridge.org/core/books/bounded-gaps-between-primes/introduction/1EB4C973AF612325EF4BC3467AF42B59)</sup>。此后无条件界的进展便停止了<sup>[4](https://www.cambridge.org/core/books/bounded-gaps-between-primes/introduction/1EB4C973AF612325EF4BC3467AF42B59)</sup>。假设埃利奥特–哈尔伯斯坦猜想成立，给出条件界 H_1 ≤ 12；该猜想的更强广义形式给出 H_1 ≤ 6；两个条件性结果都不能证明 H_1 = 2<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。因此，有界间隙定理并未解决孪生素数猜想，该猜想预言无穷多个间隙恰好为 2<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。

## 关于最大间隙的猜想

克拉梅尔（1937）和香克斯（1964）猜想，第 n 个最大间隙的起始素数满足 p(n) ~ exp(√n)；沃尔夫猜想其修正形式 p(n) ~ √n · exp(√n)，这与数值证据更吻合<sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。沃尔夫还猜想 n 以下最大间隙 G(n) 出现在何处，在其公式中代入 π(n) ~ n/ln n，对大 n 便约化为克拉梅尔猜想 G(n) ~ (ln n)<sup>2</sup><sup>[1](https://mathworld.wolfram.com/PrimeGaps.html)</sup>。卡德威尔提出的一个精化版本表明，x 附近的最大间隙可由 (ln x)(ln x − ln_2 x) 很好地近似，这一公式得到间隙数值计算的有力支持<sup>[12](https://doi.org/10.1007/s00222-023-01199-0)</sup>。已知 G(x) 的增长快于 ln x，即素数定理所预言的平均间距<sup>[13](https://books.openbookpublishers.com/10.11647/obp.0526.08.pdf)</sup>。

## References

1. [Prime Gaps, Wolfram MathWorld](https://mathworld.wolfram.com/PrimeGaps.html)
2. [The Prime Glossary: gaps between primes, Chris Caldwell, University of Tennessee at Martin](https://t5k.org/glossary/page.php?sort=PrimeGaps)
3. [Prime gap, PlanetMath](https://planetmath.org/primegap)
4. [Introduction (Chapter 1), *Bounded Gaps Between Primes*, Cambridge University Press (2021)](https://www.cambridge.org/core/books/bounded-gaps-between-primes/introduction/1EB4C973AF612325EF4BC3467AF42B59)
5. [Prime numbers, OeisWiki](https://oeis.org/wiki/Prime_numbers)
6. [Ford, Green, Konyagin, Maynard, and Tao. Large gaps between consecutive prime numbers, Annals of Mathematics 183 (2016)](https://annals.math.princeton.edu/wp-content/uploads/annals-v183-n3-p04-p.pdf)
7. [Bounded gaps between primes: Zhang and the AIM workshop, American Institute of Mathematics](https://www.aimath.org/news/primegaps/primegaps_zhang.html)
8. [Yitang Zhang. Bounded gaps between primes, Annals of Mathematics 179 (2014), 1121–1174](https://annals.math.princeton.edu/2014/179-3/p07)
9. [ARCC Workshop: Bounded gaps between primes, American Institute of Mathematics (2014)](https://www.aimath.org/pastworkshops/primegaps2.html)
10. [Bounded Gaps Between Primes, Wolfram MathWorld](https://mathworld.wolfram.com/BoundedGapsBetweenPrimes.html)
11. [Bounded gaps between primes: outline, Kiran Kedlaya](https://kskedlaya.org/ant/chap-gpy.html)
12. [Large prime gaps and probabilistic models, Inventiones mathematicae (2023)](https://doi.org/10.1007/s00222-023-01199-0)
13. [Mind the Gap, in *The Big Questions in Mathematics*, Open Book Publishers](https://books.openbookpublishers.com/10.11647/obp.0526.08.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Number theory › Analytic number theory › Primes and factorization

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/prime-gap

English original: https://www.edgepedia.org/prime-gap
