# 素数阶乘

**素数阶乘**（primorial）是阶乘在素数范围内的对应概念：一串连续素数的乘积，记作后置井号（postscript hash）形式。在第一种定义中，第 n 个素数的素数阶乘是前 n 个素数的乘积；在第二种定义中，n# 是不大于 n 的所有素数的乘积。<sup>[1](https://oeis.org/A002110)</sup><sup> • </sup><sup>[2](https://oeis.org/A034386)</sup> 这一概念可追溯到欧几里得（Euclid）关于素数有无穷多个的证明——该证明把有限个素数相乘再加一；如今它贯穿初等数论，从切比雪夫函数到纪录素数搜寻都能见到。<sup>[3](https://t5k.org/glossary/page.php?sort=Primorial)</sup><sup> • </sup><sup>[4](https://t5k.org/top20/page.php?id=5)</sup>

| 关键事实 | 详情 |
|---|---|
| 两种定义 | p_n# = 前 n 个素数的乘积（OEIS A002110：2, 6, 30, 210, 2310, 30030, ...）；n# = ≤ n 的所有素数的乘积（OEIS A034386：1, 1, 2, 6, 6, 30, 30, 210, ...）<sup>[1](https://oeis.org/A002110)</sup><sup> • </sup><sup>[2](https://oeis.org/A034386)</sup> |
| 增长 | 第一种定义的素数阶乘按 exp((1 + o(1)) n log n) 增长；第二种定义按 exp((1 + o(1)) n) 增长<sup>[1](https://oeis.org/A002110)</sup><sup> • </sup><sup>[2](https://oeis.org/A034386)</sup> |
| 切比雪夫联系 | log(x#) 是切比雪夫 theta 函数，且素数定理等价于 log x# ~ x<sup>[3](https://t5k.org/glossary/page.php?sort=Primorial)</sup> |
| 整除性纪录 | 每个素数阶乘都是具有 n 个不同素因子的最小数，且 φ(n)/n 在每个素数阶乘处达到新的最小值<sup>[1](https://oeis.org/A002110)</sup> |
| 已知最大素数阶乘素数 | 9562633# + 1，有 4,151,498 位，2025 年 6 月发现<sup>[4](https://t5k.org/top20/page.php?id=5)</sup> |
| 未决问题 | 是否存在无穷多个素数 p 使 p# + 1 为素数，尚不清楚<sup>[5](https://mathworld.wolfram.com/PrimorialPrime.html)</sup> |

## 定义与记号

两种定义都常用，差别在于自变量所计数的对象。在第一种定义中，第 n 个素数 p_n 的素数阶乘是前 n 个素数的乘积，有时写作 prime(n)#；该数列开头为 1, 2, 6, 30, 210, 2310, 30030, 510510, 9699690, 223092870, 6469693230, 200560490130, ...<sup>[1](https://oeis.org/A002110)</sup> 在第二种定义中，n# 是不大于 n 的所有素数的乘积，因此在相邻素数之间取值不变：1, 1, 2, 6, 6, 30, 30, 210, 210, 210, 210, 2310, ...<sup>[2](https://oeis.org/A034386)</sup> 《素数词汇表》（The Prime Glossary）把同样的第二种定义称为 p-素数阶乘，并给出例子 3# = 6、5# = 30 和 13# = 30030，还注明其别名为 p-素数阶乘。<sup>[3](https://t5k.org/glossary/page.php?sort=Primorial)</sup> 有些作者把记号推广到任意正实数，于是 10.72# = 2·3·5·7 = 210。<sup>[3](https://t5k.org/glossary/page.php?sort=Primorial)</sup> Metamath 证明数据库形式化了第二种形式，把非负整数上的素数阶乘定义为不超过该整数的所有素数的乘积，并写作后置井号：6# = 30。<sup>[6](https://us.metamath.org/mpegif/df-prmo.html)</sup>

第一种定义也有递推形式：#(0) = 1，且 #(n) = p_n · #(n−1)，由此得到前六个值 1、2、6、30、210、2310。<sup>[7](https://ar5iv.labs.arxiv.org/html/2301.02770)</sup> 两种定义通过素数计数函数复合而相互关联：在 n 处的第二种定义值等于在 π(n) 处的第一种定义值，其中 π(n) 是不超过 n 的素数个数。<sup>[2](https://oeis.org/A034386)</sup>

## 增长与渐近性

两种定义的增长速度不同，因为第二种定义的自变量是数本身，而第一种定义的自变量是素数指标。对第一种定义，a(n)^(1/n) 约为 (n log n)/e，渐近表达式为 exp((1 + o(1)) n log n)。<sup>[1](https://oeis.org/A002110)</sup> 对第二种定义，渐近表达式为 exp((1 + o(1)) n)。<sup>[2](https://oeis.org/A034386)</sup>

除渐近式外还有显式界。罗瑟（Rosser）和舍恩菲尔德（Schoenfeld，1962）证明，对第二种定义，当 n > 0 时 log(a(n)) < 1.01624·n。<sup>[2](https://oeis.org/A034386)</sup> 关于素数阶乘对数的现代显式估计，也就是对 θ(p_k) 的估计，借鉴了克里斯蒂安·阿克斯勒（Christian Axler）和皮埃尔·杜萨尔（Pierre Dusart）的近期工作。<sup>[8](https://cs.uwaterloo.ca/journals/JIS/VOL24/Berkane/berkane8.pdf)</sup> 计数函数 K(x) 统计不超过 x 的素数阶乘数，满足 K(x) ≈ π(log x)。<sup>[8](https://cs.uwaterloo.ca/journals/JIS/VOL24/Berkane/berkane8.pdf)</sup>

## 素数定理与切比雪夫函数

素数阶乘之所以在解析数论中居于中心地位，其联系通过切比雪夫函数建立。把 log(x#) 看作实自变量的函数时，它就是切比雪夫 theta 函数 θ(x)，即对所有素数 p ≤ x 求 log p 之和；而素数定理等价于命题 log x# ~ x。<sup>[3](https://t5k.org/glossary/page.php?sort=Primorial)</sup> MathWorld 同样指出，素数阶乘的对数与切比雪夫函数密切相关。<sup>[9](https://mathworld.wolfram.com/Primorial.html)</sup> 用数列语言说，a(0) = exp(θ(1))；且当 n > 0 时，对任意介于第 n 个与第 (n+1) 个素数之间的 m，都有 a(n) = exp(θ(m))。<sup>[1](https://oeis.org/A002110)</sup>

素数定理由雅克·阿达马（Jacques Hadamard）和夏尔·让·德·拉瓦莱·普桑（Charles Jean de la Vallée Poussin）于 1896 年独立证明，它断言 π(x) ~ x/log x，并可用素数阶乘数及其互素数（totatives）重新表述。<sup>[10](https://arxiv.org/html/2301.03586)</sup> 第 n 个素数阶乘的互素数是与第 n 个素数阶乘互素的数；其计数满足递推 tot(1) = 1 和 tot(n) = (p_n − 1)·tot(n−1)，而由这些互素数构造的函数可渐近逼近素数计数函数。<sup>[10](https://arxiv.org/html/2301.03586)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/2301.02770)</sup> 素数阶乘数 N_k 也在尼古拉（Nicolas）和罗宾（Robin）给出的黎曼猜想等价形式中发挥作用。<sup>[8](https://cs.uwaterloo.ca/journals/JIS/VOL24/Berkane/berkane8.pdf)</sup>

## 素数阶乘素数

**素数阶乘素数**是形如 n# + 1 或 n# − 1 的素数。对 n# + 1，符合条件的指标开头为 n = 1, 2, 3, 4, 5, 11, 75, 171, 172, 384, 457, 616, 643, 1391, 1613, 2122, 2647, 2673, 4413, 13494, 31260, 33237, 304723, ...（OEIS A014545）。<sup>[5](https://mathworld.wolfram.com/PrimorialPrime.html)</sup> 就素数 p 本身而言，当 p = 2, 3, 5, 7, 11, 31, 379, 1019, 1021, 2657, 3229, 4547, 4787, 11549, 13649, 18523, 23801, 24029, 42209（18,241 位）时 p# + 1 为素数；当 p = 3, 5, 11, 13, 41, 89, 317, 337, 991, 1873, 2053, 2377, 4093, 4297, 4583, 6569, 13033, 15877（6,845 位）时 p# − 1 为素数；两种形式都已对所有 p < 100000 的素数检验过。<sup>[4](https://t5k.org/top20/page.php?id=5)</sup>

目前不知道是否存在无穷多个素数 p 使 p# + 1 为素数，也不知道是否有无穷多个 p 使其为合数。<sup>[5](https://mathworld.wolfram.com/PrimorialPrime.html)</sup>

## 数据一览

| n | 第一种定义的素数阶乘 a(n) |
|---|---|
| 1 | 2 |
| 2 | 6 |
| 3 | 30 |
| 4 | 210 |
| 5 | 2310 |
| 6 | 30030 |
| 7 | 510510 |
| 10 | 6469693230 |

<sup>[1](https://oeis.org/A002110)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/2301.02770)</sup>

素数阶乘素数的纪录在 2024 年和 2025 年推进得很快。目前已知 27 个形如 n# + 1 的素数阶乘素数，最大的是 9562633# + 1，有 4,151,498 位，由沃恩·戴维斯（Vaughan Davies）于 2025 年 6 月使用 MultiSieve、PrimeGrid、PRST 和 OpenPFGW 发现；已知 24 个形如 n# − 1 的素数阶乘素数，最大的是 6533299# − 1，有 2,835,864 位，由克里斯蒂安·沃尔鲍姆（Christian Wallbaum）于 2024 年 8 月发现。<sup>[4](https://t5k.org/top20/page.php?id=5)</sup><sup> • </sup><sup>[11](https://www.pzktupel.de/Primetables/TablePrimorial.php)</sup> 2024 年的那一波包括：7351117# + 1，有 3,191,401 位（布莱恩·利特尔（Bryan Little），2024 年 9 月）；6369619# + 1，有 2,765,105 位（尼克·梅里利斯（Nick Merrylees），2024 年 8 月）；5256037# + 1，有 2,281,955 位（门胁树（Itsuki Kadowaki），2024 年 8 月）；以及 4328927# + 1，有 1,878,843 位（凯·普雷斯勒（Kai Presler），2024 年 7 月）。<sup>[4](https://t5k.org/top20/page.php?id=5)</sup><sup> • </sup><sup>[11](https://www.pzktupel.de/Primetables/TablePrimorial.php)</sup> PrimeGrid 的素数阶乘素数搜索于 2024 年 8 月 12 日 06:10:14 UTC 找到 6369619# + 1；这个概率素数（probable prime）于 2024 年 8 月 15 日由一台运行 Debian 12.5 的 AMD Ryzen 9 7950X3D（4.20 GHz，128 GB 内存）确认为素数，使用 PFGW 以 4 个线程耗时约 3 天 44 分钟。<sup>[12](https://primegrid.com/download/PRS-6369619.pdf)</sup>

## 与阶乘及相关数列的比较

素数阶乘是具有 n 个不同素因子的最小数：每个 a(n) 都是满足 ω(N) = n 的最小 N，因为任何这样的数都必须包含前 n 个素数中的每一个，而素数阶乘不含其他素因子。<sup>[1](https://oeis.org/A002110)</sup> 它也是欧拉函数比值的纪录创造者：φ(n)/n 在每个素数阶乘处达到新的最小值，因为乘入一个新的小素数，比任何其他选择都更能降低与其互素的数的比例。<sup>[1](https://oeis.org/A002110)</sup> 当 n > 0 时，素数阶乘 a(n) 有 2^n 个酉因子（unitary divisors），每个对应其素因子集合的一个子集，并且在该计数上创下纪录。<sup>[1](https://oeis.org/A002110)</sup>

第二种定义的素数阶乘既是 n! 的无平方因子核（squarefree kernel），也是 lcm(1, 2, 3, ..., n) 的无平方因子核：它等于 n! 的根数（radical），因为 n! 与 1 到 n 的最小公倍数恰好只涉及不超过 n 的素数，而在根数中每个素数只出现一次。<sup>[2](https://oeis.org/A034386)</sup> 正是在这个意义上，素数阶乘是把所有素幂指数都压成 1 的阶乘。

## 应用

在计算实践中，素数阶乘充当所有小素数的紧凑容器。计算 k = B# 并检查 gcd(n, k)，可以在不分解 n 的情况下检验大整数 n 是否有不超过 B 的素因子；预先计算 B 的素数阶乘，也能高效提取任意大数中所有不超过 B 的小素因子 p。<sup>[13](https://trizenx.blogspot.com/2020/01/primorials-in-algorithms.html)</sup> 一个相关的无平方因子性预检使用小上界 B，至多取 B = floor(n^(1/3))；对于形如 a^k ± 1 的数，取 B = 10^6 或 10^7 的上界，能以高概率高效地把非常大的数识别为潜在无平方因子数，因为这类数很少含有大于 10^6 且重数大于 1 的素因子。<sup>[13](https://trizenx.blogspot.com/2020/01/primorials-in-algorithms.html)</sup>

素数阶乘的互素数结构也与素数计数相关：与第 n 个素数阶乘互素的数就是第 n 个素数阶乘的互素数，其计数遵循递推 tot(n) = (p_n − 1)·tot(n−1)，而由这些互素数构造的函数可渐近逼近素数计数函数。<sup>[7](https://ar5iv.labs.arxiv.org/html/2301.02770)</sup><sup> • </sup><sup>[10](https://arxiv.org/html/2301.03586)</sup> 在猜想方面，哥德巴赫猜想的一个版本可以针对素数阶乘区间表述，并与孪生素数、表兄弟素数和性感素数猜想结合；一项研究通过计算验证了这些变体，验证范围是直到第 10 个素数阶乘 #(10) = 6469693230 的偶数。<sup>[7](https://ar5iv.labs.arxiv.org/html/2301.02770)</sup>

## References

1. [A002110: Primorial numbers (first definition), OEIS](https://oeis.org/A002110)
2. [A034386: Primorial numbers (second definition), OEIS](https://oeis.org/A034386)
3. [Primorial, The Prime Glossary (Chris Caldwell's Prime Pages)](https://t5k.org/glossary/page.php?sort=Primorial)
4. [PrimePage Primes: Primorial, The Prime Pages top-20 record list](https://t5k.org/top20/page.php?id=5)
5. [Primorial Prime, Wolfram MathWorld](https://mathworld.wolfram.com/PrimorialPrime.html)
6. [df-prmo, Metamath Proof Explorer](https://us.metamath.org/mpegif/df-prmo.html)
7. [On Primorial Numbers, arXiv:2301.02770](https://ar5iv.labs.arxiv.org/html/2301.02770)
8. [Explicit Estimates Involving the Primorial Integers and Applications, Journal of Integer Sequences, Vol. 24](https://cs.uwaterloo.ca/journals/JIS/VOL24/Berkane/berkane8.pdf)
9. [Primorial, Wolfram MathWorld](https://mathworld.wolfram.com/Primorial.html)
10. [The Prime Number Theorem and Primorial Numbers, arXiv:2301.03586](https://arxiv.org/html/2301.03586)
11. [Primorial Primes table, pzktupel.de](https://www.pzktupel.de/Primetables/TablePrimorial.php)
12. [PrimeGrid Primorial Prime Search announcement: 6369619# + 1](https://primegrid.com/download/PRS-6369619.pdf)
13. [Primorial in algorithms, trizenx.blogspot.com](https://trizenx.blogspot.com/2020/01/primorials-in-algorithms.html)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Integer sequences and partitions › Special and named integers › Factorial-like and combinatorial named integers

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/primorial

English original: https://www.edgepedia.org/primorial
