arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16285math.NTcs.DS
收藏

关于计算 $p_n$ 的算法的一则注记

A Note on Algorithms for Computing $p_n$

University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Ansh Aggarwal

AI总结:

本文分析计算第 $n$ 个素数的算法,利用 $\pi(x)$ 复杂度结果给出二分搜索界,并在 Riemann 假设与 Cramér 猜想下改进筛法复杂度。

摘要:

我们分析了计算第 $n$ 个素数 $p_n$ 的算法,并为若干方法建立了渐近界。利用关于计算素数计数函数 $\pi(x)$ 复杂度的已有结果,我们证明二分搜索方法可在 $O(\sqrt{n}\\, (\log n)^4)$ 时间内计算 $p_n$。在 Riemann 假设和 Cramér 猜想成立的前提下,我们围绕 li$^{-1}(n)$ 构造了更紧的区间,从而得到一种改进的基于筛法的算法,其运行时间为 $O(\sqrt{n}\\, (\log^{7/2} n)\\, \log\log n)$。这一改进尽管是有条件的,却表明进一步改进素数间隙估计可能产生可证明更快的素数计算方法。

英文摘要:

We analyze algorithms for computing the $n$th prime $p_n$ and establish asymptotic bounds for several approaches. Using existing results on the complexity of evaluating the prime-counting function $π(x)$, we show that the binary search approach computes $p_n$ in $O(\sqrt{n} \, (\log n)^4)$ time. Assuming the Riemann Hypothesis and Cramér's conjecture, we construct a tighter interval around li$^{-1}(n)$, leading to an improved sieve-based algorithm running in $O(\sqrt{n} \, (\log ^{7/2} n) \, \log \log n)$ time. This improvement, though conditional, suggests that further refinements to prime gap estimates may yield provably faster methods for computing primes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑