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

求模式中素数的两个算法

Two Algorithms to Find Primes in Patterns

Jonathan P. Sorenson, Jonathan Webster

摘要:

令$k\ge 1$是整数,并且令$P= (f_1(x), \ldots, f_k(x) )$是整数上的$k$容许线性多项式,或\textit{the pattern}。我们提出了两个算法,找到所有整数$x$,其中$\max{ \{f_i(x) \} } \le n$和所有的$f_i(x)$是素数。我们的第一个算法最多使用$O(k\sqrt{n})$空间进行$O_P(n/(\log\log n)^k)$算术运算。我们的第二个算法需要稍微多一点的时间,$O_P(n/(\log \log n)^{k-1})$算术运算,但是对于一个常数$c>2$,只使用$n^{1/c}$空间。我们无条件地证明正确性,但运行时间依赖于两个未经证明但合理的假设。我们不知道任何以前的复杂性结果,这个问题超出了使用一个总理筛子。我们还实现了我们的第二个算法的几个并行版本,以证明它在实践中是可行的。特别是,我们发现了一些新的坎宁安链的长度为15,我们发现了所有的四素数高达$10^{17}$。

英文摘要:

Let $k\ge 1$ be an integer, and let $P= (f_1(x), \ldots, f_k(x) )$ be $k$ admissible linear polynomials over the integers, or \textit{the pattern}. We present two algorithms that find all integers $x$ where $\max{ \{f_i(x) \} } \le n$ and all the $f_i(x)$ are prime. Our first algorithm takes at most $O_P(n/(\log\log n)^k)$ arithmetic operations using $O(k\sqrt{n})$ space. Our second algorithm takes slightly more time, $O_P(n/(\log \log n)^{k-1})$ arithmetic operations, but uses only $n^{1/c}$ space for a constant $c>2$. We prove correctness unconditionally, but the running time relies on two unproven but reasonable conjectures. We are unaware of any previous complexity results for this problem beyond the use of a prime sieve. We also implemented several parallel versions of our second algorithm to show it is viable in practice. In particular, we found some new Cunningham chains of length 15, and we found all quadruplet primes up to $10^{17}$.

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

↑