An Algorithm to Find Sums of Powers of Consecutive Primes
Abstract
We present and analyze an algorithm to enumerate all integers n x that can be written as the sum of consecutive kth powers of primes, for k>1. We show that the number of such integers n is asymptotically bounded by a constant times ck x2/(k+1) ( x)2k/(k+1) , where ck is a constant depending solely on k, roughly k2 in magnitude. This also bounds the asymptotic running time of our algorithm. We also give a lower bound of the same order of magnitude, and a very fast algorithm that counts such n. Our work extends the previous work by Tongsomporn, Wananiyakul, and Steuding (2022) who examined sums of squares of consecutive primes.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.