# 素数计数函数

**素数计数函数** π(x) 是计数小于或等于 x 的素数的函数；例如，π(100) = 25，因为2到100之间恰好有25个素数。<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup> 记号 π(x) 由埃德蒙·兰道（Edmund Landau）于1909年引入，尽管它与常数3.14159...冲突，但已成为标准，参考文献有时写作 PrimePi(x) 以避免歧义。<sup>[2](https://mathworld.wolfram.com/PrimeCountingFunction.html)</sup><sup> • </sup><sup>[3](https://oeis.org/A000720)</sup> 该函数是解析数论的核心：素数定理描述其渐近行为，黎曼1859年的论文给出了用泽塔函数零点表示的精确公式，而在越来越大的 x 处精确计算它，仍然是不断刷新计算纪录的活跃领域。<sup>[4](https://arxiv.org/pdf/1406.3754)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | π(x) = #{素数 p ≤ x}，对实数 x 定义的阶梯函数；π(22/7) = 2，π(π) = 2，π(e) = 1<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup> |
| 素数定理 | π(x) ~ x/log x ~ li(x)；由阿达马（Hadamard）和德拉瓦莱普桑（de la Vallée Poussin）于1896年独立首次证明<sup>[5](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)</sup><sup> • </sup><sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup> |
| 最佳无条件误差 | \|π(x) − li(x)\| = O(x·exp(−d(ln x)^(3/5)(ln ln x)^(−1/5)))，来自维诺格拉多夫–科罗博夫方法<sup>[7](https://dlmf.nist.gov/27.12)</sup> |
| 黎曼假设联系 | 黎曼假设（RH）等价于 \|π(x) − li(x)\| < (1/(8π))·√x·ln x 对所有 x ≥ 2657 成立<sup>[7](https://dlmf.nist.gov/27.12)</sup> |
| li(x) − π(x) 的符号 | 在扩展到10^19的计算中，对大 x 为正，但李特尔伍德（Littlewood）于1914年证明 π(x) − li(x) 无穷多次改变符号<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)</sup> |
| 记录计算 | π(10^29) = 1,520,698,109,714,272,166,094,258,063，由金·瓦利施（Kim Walisch）和大卫·鲍（David Baugh）于2022-02-28计算<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup> |
| 最快算法 | 组合：O(x^(2/3) log²x) 时间（德莱格利斯–里瓦）；解析：O(x^(1/2+ε))（拉加里亚斯–奥德利兹科，普拉特）<sup>[10](https://www.ams.org/journals/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf)</sup><sup> • </sup><sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup> |

## 定义与基本性质

对于实数 x，π(x) 是满足 p ≤ x 的素数 p 的个数。它是一个阶梯函数：在相邻素数之间为常数，在每个素数处跳跃1，因此在素数处的函数值包括该素数在内。定义无需改变即可扩展到非整数自变量，所以 π(22/7) = 2（只有2和3小于22/7 ≈ 3.14），π(π) = 2，π(e) = 1。<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup> π(n) 对于 n = 1, 2, 3, ... 的前几个值是 0, 1, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, ...，且 π(100) = 25。<sup>[3](https://oeis.org/A000720)</sup><sup> • </sup><sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup>

π(x) 与返回第 n 个素数的函数通过广义逆关系相联系：对第 n 个素数应用 π 返回 n，而第 n 个素数是最小的 m 使得 π(m) = n。<sup>[3](https://oeis.org/A000720)</sup> 黎曼的相关函数 J(x) 在素数处跳跃1，在素数的平方处跳跃1/2，在素数的立方处跳跃1/3，其初始值为 0, 1, 2, 5/2, 7/2, ...<sup>[12](https://mathworld.wolfram.com/RiemannPrimeCountingFunction.html)</sup>

## 近似与素数定理

最简单的近似是 x/log x。素数定理指出，当 x → ∞ 时 π(x) ~ x/log x，等价地 π(x) ~ li(x)，其中 li(x) = ∫₂ˣ du/log u 是对数积分。<sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup> 该定理以此定性形式首次由阿达马（1896）和德拉瓦莱普桑（1896）独立证明。<sup>[5](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)</sup> 定量形式给出 π(x) = li(x) + O(x·exp(−c√log x)) 对 x ≥ 2 一致成立，展开 li(x) 得到 π(x) = x/log x + x/(log x)² + O(x/(log x)³)。<sup>[5](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)</sup> 正如蒙哥马利和沃恩所说，π(x) 的精确估计需要以对数积分或类似函数作为主项；仅用 x/log x 系统性地过于粗糙。<sup>[5](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)</sup>

最佳无条件渐近误差估计，由科罗博夫和维诺格拉多夫（均为1958年）给出，是 |π(x) − li(x)| = O(x·exp(−d(ln x)^(3/5)(ln ln x)^(−1/5)))；使用福特2002年的常数，指数为 exp(−0.2098 (log x)^(3/5)/(log log x)^(1/5))。<sup>[7](https://dlmf.nist.gov/27.12)</sup><sup> • </sup><sup>[13](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)</sup> 对于有限 x 也有显式不等式：罗瑟和舍恩菲尔德（1962）证明 π(x) < (x/log x)(1 + 3/(2 log x)) 对 x > 1，π(x) > (x/log x)(1 + 1/(2 log x)) 对 x ≥ 59，而杜萨尔将这些加强为 π(x) < (x/log x)(1 + 1/log x + 2.51/(log x)²) 对 x ≥ 355991，π(x) > (x/log x)(1 + 1/log x) 对 x ≥ 599。<sup>[3](https://oeis.org/A000720)</sup>

勒让德1808年的近似 x/(log x − B)，常数 B = 1.08366，拟合了当时的数据，但德拉瓦莱普桑在1899年证明，对于任何常数 B，这类近似都劣于 li(x)。<sup>[13](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)</sup><sup> • </sup><sup>[14](http://calteches.library.caltech.edu/3832)</sup>

## 黎曼的精确公式与更好的近似

黎曼1859年的论文发表在《柏林科学院月报》（Monatsberichte der Berliner Akademie）上，提出通过泽塔函数来研究素数计数，其欧拉乘积 ζ(s) = Π_p (1 − p^(−s))^(−1) 将 ζ 与素数联系起来。<sup>[15](https://www.wstein.org/edu/2007/simuw07/misc/Riemann-original-english.pdf)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/1406.3754)</sup><sup> • </sup><sup>[16](https://people.maths.ox.ac.uk/greenbj/papers/primenumbers.pdf)</sup> 他提出了一个精确公式，将素数计数表示为 li(x) 减去对 ζ(s) 所有非平凡零点的求和；冯·曼戈尔特于1895年证明了该公式。<sup>[12](https://mathworld.wolfram.com/RiemannPrimeCountingFunction.html)</sup> 在切比雪夫函数 ψ 的等价形式中，显式公式为 ψ(x) = x − Σ_ρ x^ρ/ρ − log 2π − (1/2)log(1 − x^(−2))，使得每个泽塔零点 ρ 对误差贡献一个振荡项 −x^ρ/ρ。<sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup> 黎曼还指出，在徒劳的证明尝试之后，他的 ξ 函数“很可能所有根都是实的”，这就是黎曼假设的起源。<sup>[15](https://www.wstein.org/edu/2007/simuw07/misc/Riemann-original-english.pdf)</sup>

**黎曼的 R 函数。** 平滑近似 R(x) = Σ_{n≥1} μ(n)·li(x^(1/n))/n，其中 μ 是莫比乌斯函数，通常通过其格拉姆级数 R(x) = 1 + Σ (ln x)^m/(m!·m·ζ(m+1)) 计算。<sup>[17](https://faculty.lynchburg.edu/~nicely/pi/pix_0000.htm)</sup> R(x) 比 li(x) 更紧密地跟踪 π(x)：在 x = 10^16 处，误差为 li(x) − π(x) = 3,214,632，但 R(x) − π(x) = 327,052，而在 x = 10^18 处分别为 21,949,555 和 −3,501,366。<sup>[17](https://faculty.lynchburg.edu/~nicely/pi/pix_0000.htm)</sup><sup> • </sup><sup>[10](https://www.ams.org/journals/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf)</sup> 改进是有限的：科特尼克表明，即使在平均意义上，R(x) 也不优于其前两项，li(x) − (1/2)li(√x)。<sup>[13](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)</sup>

## 数据一览

下表收集了 π(10^n) 的精确值以及两个主要近似的误差。

| x | π(x) | li(x) − π(x) | R(x) − π(x) | 计算者 |
|---|---|---|---|---|
| 10^2 | 25 | — | — | （经典）<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup> |
| 10^6 | 78,498 | 130 | — | （经典）<sup>[4](https://arxiv.org/pdf/1406.3754)</sup> |
| 10^9 | 50,847,534 | 1,701 | — | （经典）<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/1406.3754)</sup> |
| 10^12 | 37,607,912,018 | — | — | —<sup>[17](https://faculty.lynchburg.edu/~nicely/pi/pix_0000.htm)</sup> |
| 10^16 | 279,238,341,033,925 | 3,214,631.79 | 327,052.19 | —<sup>[17](https://faculty.lynchburg.edu/~nicely/pi/pix_0000.htm)</sup> |
| 10^18 | 24,739,954,287,740,860 | 21,949,555 | −3,501,366 | 德莱格利斯和里瓦（1996）<sup>[10](https://www.ams.org/journals/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf)</sup> |
| 10^24 | 18,435,599,767,349,200,867,866 | ≈17,146,907,278 | — | 普拉特（无条件）<sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup><sup> • </sup><sup>[18](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)</sup> |
| 10^25 | 176,846,309,399,143,769,411,680 | — | — | 比特（2014）<sup>[18](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)</sup> |
| 10^26 | 1,699,246,750,872,437,141,327,603 | — | — | 斯泰普尔（2015）<sup>[2](https://mathworld.wolfram.com/PrimeCountingFunction.html)</sup><sup> • </sup><sup>[19](https://www.lesh.cloud/primes/)</sup> |
| 10^27 | 16,352,460,426,841,680,446,427,399 | — | — | 瓦利施和鲍（2015-09-06）<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup> |
| 10^28 | 157,589,269,275,973,410,412,739,598 | — | — | 瓦利施和鲍（2020-08-30）<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup> |
| 10^29 | 1,520,698,109,714,272,166,094,258,063 | — | — | 瓦利施和鲍（2022-02-28）<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup> |

li(x) 的相对误差稳步缩小：高斯自己的比较显示误差仅约千分之一，而绝对高估缓慢增长，从10^9处的1,701到10^24处的约1.7 × 10^10。<sup>[14](http://calteches.library.caltech.edu/3832)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/1406.3754)</sup><sup> • </sup><sup>[18](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)</sup> 大卫·鲍还计算了二的幂次的记录，直到 π(2^92) = 78,908,656,317,357,166,866,404,346（2020-12-02）。<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup>

## 精确计算 π(x)

精确值来自两族算法。组合方法通过容斥原理计数素数；解析方法利用泽塔函数的解析性质。<sup>[1](https://oeis.org/wiki/Prime_counting_function)</sup>

**组合路线。** 迈塞尔在19世纪下半叶发现了该方法，并于1871年手工计算了 π(10^8) = 5,761,455；他1885年宣布的 π(10^9) = 50,847,478 后来被证明小了56，这个错误数字有时（错误地）被称为贝尔特尔森数，并被哈代和赖特引用。<sup>[20](https://www-users.cse.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/PrimeCountingFunction.html)</sup> 莱默在1959年扩展并简化了该方法，使用IBM 701得到 π(10^10) = 455,052,512，后来被证明大了1。<sup>[20](https://www-users.cse.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf)</sup> 拉加里亚斯、米勒和奥德利兹科在1985年证明 π(x) 可以用 O(x^(2/3) log x) 次运算计算，计算了直到 x = 4·10^16 的值，并纠正了博曼1972年的 π(10^13) 值，该值小了941。<sup>[20](https://www-users.cse.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf)</sup> 德莱格利斯和里瓦将算法改进到 O(x^(2/3) log²x) 时间和 O(x^(1/3) log³x log log x) 空间，并用它计算了 π(10^18)。<sup>[10](https://www.ams.org/journals/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf)</sup> 2007年，奥利维拉·席尔瓦使用组合方法计算了 π(10^23)。<sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup>

**解析路线。** 拉加里亚斯和奥德利兹科给出了 O(x^(1/2+ε)) 算法，是已知渐近最快的。<sup>[18](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)</sup> 大卫·J·普拉特严格实现了该方法，无条件计算了 π(10^24)，使用了 ζ 的前69,778,732,700个零点（高度到20,950,046,000）。<sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup> 普拉特估计了解析方法开始胜过组合方法的交叉点大约在 x = 4·10^31。<sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup> 使用 primecount 软件的记录计算通过以 --double-check 选项运行两次来验证，该选项使用不同的阿尔法调优因子，使得两次运行之间所有内部边界都不同。<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup>

## 与相关计数函数的比较

解析数论主要使用两个加权计数。切比雪夫函数是 θ(x) = Σ_{p≤x} log p，对各素数的 log p 求和，以及 ψ(x) = Σ_{n≤x} Λ(n)，对冯·曼戈尔特函数求和，其中也计入素数幂。<sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup> 素数定理等价于 ψ(X) ~ X。<sup>[16](https://people.maths.ox.ac.uk/greenbj/papers/primenumbers.pdf)</sup> 在黎曼假设下，ψ(x) − x 和 θ(x) − x 是 ≪ x^(1/2)(log x)²，而 π(x) − li(x) ≪ x^(1/2) log x。<sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup> 对 RH 到高度 3·10^12 的部分验证给出 |ψ(x) − x| < (√x/8π) log²x 对 59 ≤ x ≤ 2.169·10^25，以及对 θ(x) 的相同界对 599 ≤ x ≤ 2.169·10^25。<sup>[21](https://link.springer.com/article/10.1007/s11139-022-00616-x)</sup>

## 误差项、符号变化与黎曼假设

黎曼猜想对于足够大的 x，li(x) > π(x)，计算在巨大范围内支持他：π(x) < li(x) 已在 x 足够大且不超过10^19的范围内得到验证，扩展了科特尼克2008年到10^14的验证。<sup>[12](https://mathworld.wolfram.com/RiemannPrimeCountingFunction.html)</sup><sup> • </sup><sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)</sup><sup> • </sup><sup>[13](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)</sup> 李特尔伍德在1914年证明 π(x) − li(x) 无穷多次改变符号，所以高估最终会失败。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)</sup><sup> • </sup><sup>[7](https://dlmf.nist.gov/27.12)</sup> 在 RH 下，李特尔伍德的 Ω 结果给出 |π(x) − li(x)| = Ω(x^(1/2) log log log x / log x)，所以误差不仅是有界的，而且沿一个序列确实有那个大小。<sup>[6](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)</sup>

**第一次符号变化。** 后续工作压缩了第一次交叉的上界：特·里勒（1987）将其降到 6.69 × 10^370 以下，贝斯和哈德森（2000）降到 1.40 × 10^316 以下。<sup>[13](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)</sup> 第一次符号变化实际发生在哪里尚不清楚；贝斯和哈德森在 10^176、10^179、10^190、10^260 和 10^298 附近发现了可能的更早交叉候选。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)</sup>

黎曼假设通过一个精确等价进入：RH 成立当且仅当 |π(x) − li(x)| < (1/(8π))·√x·ln x 对所有 x ≥ 2657 成立（舍恩菲尔德界）。<sup>[7](https://dlmf.nist.gov/27.12)</sup><sup> • </sup><sup>[3](https://oeis.org/A000720)</sup> 因为这是一个等价，任何对 RH 的有限验证都转化为该界的一个有限无条件范围：使用到高度 3·10^12 的验证，不等式 |π(x) − li(x)| < √x log x/(8π) 对 2657 ≤ x ≤ 1.101·10^26 被证明。<sup>[21](https://link.springer.com/article/10.1007/s11139-022-00616-x)</sup> 关于短区间内的素数，克拉梅尔定理指出 RH 蕴含存在常数 C > 0，使得每个区间 (x, x + C√x log x) 对 x ≥ 2 至少包含 √x 个素数。<sup>[22](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/17.0_pp_419_451_Conditional_estimates.pdf)</sup>

## 历史与近期发展

实验根源可追溯到高斯：1791年，14岁的他检查了约翰·海因里希·兰伯特（Johann Heinrich Lambert）1770年编制的、列出小于102,000的素数的表，分块计数素数，并注意到 1/log n 近似素数的平均密度。<sup>[14](http://calteches.library.caltech.edu/3832)</sup> 他在1849年给天文学家恩克（Encke）的信中传达了对数积分近似，该信于1862年在他死后出版。<sup>[14](http://calteches.library.caltech.edu/3832)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/1406.3754)</sup> 1896年阿达马和德拉瓦莱普桑的证明通过表明 ζ(s) 在直线 Re(s) = 1 上没有零点而完成，确立了该定理；塞尔伯格在1949年给出了初等证明。<sup>[4](https://arxiv.org/pdf/1406.3754)</sup><sup> • </sup><sup>[5](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)</sup> 随后计算记录经过迈塞尔（10^8, 10^9）、莱默（10^10）、拉加里亚斯–米勒–奥德利兹科（4·10^16）、德莱格利斯–里瓦（10^18）、奥利维拉·席尔瓦（10^23）、普拉特的解析 π(10^24)、比特的无条件 π(10^25)，以及2022年 primecount 记录直到 π(10^29)。<sup>[20](https://www-users.cse.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf)</sup><sup> • </sup><sup>[11](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)</sup><sup> • </sup><sup>[18](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)</sup><sup> • </sup><sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup>

自2023年以来，可见的变化是理论上的而非创纪录的。贝洛蒂2024年的一篇论文证明，对于经典无零点区域，素数定理（PNT）误差项满足 Δ_i(x) ≪ exp(−ω(x))·exp(5ω(x)²/log x)，肯定地回答了平茨的 exp(−(1−ε)ω(x)) 中的 ε 是否可以去掉这一问题，并且对于 c = 53.989 的维诺格拉多夫–科罗博夫无零点区域，获得了作者所描述的素数定理中最锐的已知无条件误差项，Δ_i(x) ≪ exp(−ω(x))(log x)^9/(log log x)^3。<sup>[23](https://arxiv.org/html/2411.13791)</sup> 2025年《数论杂志》的一篇论文在索特–德米歇尔–特鲁吉安框架内改进了莱曼对 π(x) − li(x) 估计中的误差项。<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)</sup> 在计算方面，最近的记录计算是 π(10^29)，日期为2022-02-28。<sup>[9](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)</sup>

## References

1. [Prime counting function, OeisWiki](https://oeis.org/wiki/Prime_counting_function)
2. [Prime Counting Function, Wolfram MathWorld](https://mathworld.wolfram.com/PrimeCountingFunction.html)
3. [OEIS A000720: pi(n), the number of primes <= n](https://oeis.org/A000720)
4. [Andrew Granville, Prime numbers and the prime number theorem: a survey, arXiv](https://arxiv.org/pdf/1406.3754)
5. [Montgomery & Vaughan, Multiplicative Number Theory I, Ch. 10: The Prime Number Theorem](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/10.0_pp_168_198_The_Prime_Number_Theorem.pdf)
6. [Terence Tao, Distribution of primes: long ranges (project blueprint, ch. 14)](https://teorth.github.io/expdb/blueprint/chap-prime_counting_function.html)
7. [NIST DLMF §27.12, Asymptotic Formulas: Primes](https://dlmf.nist.gov/27.12)
8. [New bounds in R.S. Lehman's estimates for the difference π(x)−li(x), Journal of Number Theory (2025)](https://www.sciencedirect.com/science/article/abs/pii/S0022314X25002045)
9. [Records set using primecount, Kim Walisch, primecount documentation](https://github.com/kimwalisch/primecount/blob/master/doc/Records.md)
10. [Deléglise & Rivat, Computing π(x): the Meissel, Lehmer, Lagarias, Miller, Odlyzko method, Math. Comp. 65 (1996)](https://www.ams.org/journals/mcom/1996-65-213/S0025-5718-96-00674-6/S0025-5718-96-00674-6.pdf)
11. [David J. Platt, Computing π(x) analytically, Math. Comp. 84 (2015)](https://www.ams.org/journals/mcom/2015-84-293/S0025-5718-2014-02884-6/S0025-5718-2014-02884-6.pdf)
12. [Riemann Prime Counting Function, Wolfram MathWorld](https://mathworld.wolfram.com/RiemannPrimeCountingFunction.html)
13. [T. Kotnik, The prime-counting function and its analytic approximations, AICM 2008](https://www.statisticshowto.com/wp-content/uploads/2019/12/aicm2008.pdf)
14. [A Centennial History of the Prime Number Theorem, Caltech Engineering & Science (1996)](http://calteches.library.caltech.edu/3832)
15. [B. Riemann, On the Number of Prime Numbers less than a Given Quantity (1859, trans. D. R. Wilkins)](https://www.wstein.org/edu/2007/simuw07/misc/Riemann-original-english.pdf)
16. [Ben Green, The Prime Number Theorem, lecture notes, University of Oxford](https://people.maths.ox.ac.uk/greenbj/papers/primenumbers.pdf)
17. [Thomas R. Nicely, A table of prime counts pi(x) to 1e16](https://faculty.lynchburg.edu/~nicely/pi/pix_0000.htm)
18. [J. Büthe, Analytic computation of pi(x), University of Bonn](https://www.math.uni-bonn.de/people/jbuethe/topics/AnalyticPiX.html)
19. [Prime Number Project, table of π(n) values and their computors](https://www.lesh.cloud/primes/)
20. [Lagarias, Miller & Odlyzko, Computing π(x): The Meissel-Lehmer Method, Math. Comp.](https://www-users.cse.umn.edu/~odlyzko/doc/arch/meissel.lehmer.pdf)
21. [Improving bounds on prime counting functions by partial verification of the Riemann hypothesis, Ramanujan Journal](https://link.springer.com/article/10.1007/s11139-022-00616-x)
22. [Montgomery & Vaughan, Multiplicative Number Theory I, Ch. 13: Conditional estimates](https://personal.science.psu.edu/rcv4/personal/Publications/MNTI/17.0_pp_419_451_Conditional_estimates.pdf)
23. [Bellotti, Zero-density estimates and the optimality of the error term in the prime number theorem, arXiv](https://arxiv.org/html/2411.13791)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: 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-counting-function

English original: https://www.edgepedia.org/prime-counting-function
