Analysis of Algorithms for Moser's Problems on Sums of Consecutive Primes
arXiv:2509.00236 · doi:10.5281/zenodo.23018400
Abstract
In his 1963 paper on the sum of consecutive primes, Moser posed four open questions related to , the number of ways an integer 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 , construct a histogram of values of for all . These two algorithms were described, but not analyzed, by Jean Charles Meyrignac (2000) and Michael S. Branicky (2022). We show the first algorithm takes time using space, and the second has two versions, one of which takes time but only space, and the other which takes time but only space. However, Meyrinac's algorithm is easier to parallelize. We then present data generated by these algorithms that address all four open questions.