arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.00236math.NTcs.DS
收藏

Moser 连续素数和问题的算法分析

Analysis of Algorithms for Moser's Problems on Sums of Consecutive Primes

Butler University(巴特勒大学)

Jonathan P. Sorenson, Eleanor Waiss

AI总结:

本文分析两种计算 $n\le x$ 时连续素数和表示数 $f(n)$ 的算法,给出其时间与空间复杂度,并以计算数据回应 Moser 的四个开放问题。

摘要:

在其 1963 年关于连续素数和的论文中,Moser 提出了四个与 $f(n)$ 有关的开放问题,其中 $f(n)$ 表示整数 $n$ 能够写成连续素数之和的方式数。(另见 Richard K. Guy《数论中未解决的问题》中的问题 C2。)本文提出并分析两种算法:给定界 $x$ 后,它们为所有 $n\le x$ 构造 $f(n)$ 取值的直方图。这两种算法曾由 Jean Charles Meyrignac(2000)和 Michael S. Branicky(2022)描述,但未作分析。本文证明第一种算法耗时 $O(x\log x)$、占用 $x^{2/3}$ 空间;第二种有两个版本,其一耗时 $O(x\log x)$ 但仅占用 $x^{3/5}$ 空间,另一耗时 $O(x(\log x)^2)$ 但仅占用 $O(\sqrt{x\log x})$ 空间。不过 Meyrinac 的算法更易于并行化。随后本文给出由这些算法生成的数据,用以回应全部四个开放问题。

英文摘要:

In his 1963 paper on the sum of consecutive primes, Moser posed four open questions related to $f(n)$, the number of ways an integer $n$ can be written as a sum of consecutive primes. (See also problem C2 from Richard K.~Guy's \textit{Unsolved Problems in Number Theory}.) In this paper, we present and analyze two algorithms that, when given a bound $x$, construct a histogram of values of $f(n)$ for all $n\le x$. These two algorithms were described, but not analyzed, by Jean Charles Meyrignac (2000) and Michael S. Branicky (2022). We show the first algorithm takes $O(x\log x)$ time using $x^{2/3}$ space, and the second has two versions, one of which takes $O(x\log x)$ time but only $x^{3/5}$ space, and the other which takes $O(x(\log x)^2)$ time but only $O( \sqrt{x\log x})$ space. However, Meyrinac's algorithm is easier to parallelize. We then present data generated by these algorithms that address all four open questions.

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

↑