Exact Prime Prediction - Primes solved as a winding number from finitely many zeta zeros
The question for work on Prime Infinity was simple enough to ask. Given a whole number, can we determine the next prime by measuring rotation? In this paper we give an exact construction. Start with any integer n ≥ 2. Using finitely many zeros of the Riemann zeta function, we construct a polygon in the complex plane. The number of times that polygon winds counterclockwise around the origin is the smallest prime greater than n. Start at 7 to see where the rotation comes from. There are two primes between 7 and 14. Imagine adding two rotating arrows. As the angle θ runs from 0 to 2π, the first arrow makes 11 turns and the second makes 13. We give a prime ℓ the weight 4^(7−ℓ), so the arrow for 13 is only one-sixteenth as long as the arrow for 11. Its tip traces a small rotation around the tip of the longer arrow. The combined path changes shape, but it still winds around the origin exactly 11 times. One way to see this is to shrink the shorter arrow continuously to zero. At no point can it reach far enough to pull the combined path through the origin. The winding number therefore stays at 11 throughout. That is the precise sense in which I use disharmony and equilibrium. The rotations have different frequencies, and their sum changes shape as they move in and out of phase. What holds steady is an integer. For a general starting number n, let q be the next prime. Bertrand’s postulate tells us that q lies between n and 2n. With weights 4^(n−ℓ), all the prime terms after q have a combined length at most one-third of the length of the q term. This gives a margin we can calculate. It is why the first prime determines the winding number even when many later primes contribute to the path. The question that took the work beyond that observation was this: how do we build the polygon when we do not already know which primes are in the interval? We use the explicit formula for the Riemann zeta function to express weighted prime-power contributions in terms of zeta zeros. Möbius inversion removes the contributions from higher powers such as squares and cubes. We then reconstruct the vertices from zeros up to a finite height determined by n. The proof bounds the effect of every omitted zero and shows that the resulting change is too small to alter the winding number. It uses the complex zeros themselves and does not assume the Riemann hypothesis. An early calculation starting at 7 returned 8. That failure sharpened the question for me. How could the calculation tell us, from its own error bounds, when to trust the integer it returned? The accompanying Python solver checks that the polygon stays farther from the origin than its total error allows it to move. It then counts signed crossings of a ray from the origin. Starting at 7, it certifies 11. Starting at either 11 or 12, it certifies 13. It does this without testing prospective successors for primality. Why the winding number gives the next prime Start at 7. Before asking how many times the curve turns, ask which numbers can contribute to it. The explicit formula for the Riemann zeta function includes primes and their powers. So 8 and 9 appear at first, because 8 = 2³ and 9 = 3². Möbius inversion cancels those higher powers. Ten contributes nothing because it is not a prime power. That leaves 11 and 13 in the interval from 7 to 14. Now let z travel once counterclockwise around the unit circle. The weighted curve for those two primes has a simple factorisation: W(z) = z¹¹/256 + z¹³/4096 = (z¹¹/256)(1 + z²/16). The first factor makes eleven turns around the origin. Watch the second factor on its own. It traces a small circle centred at 1, with radius 1/16. It goes around its own centre twice, yet winds around the origin zero times. Multiplying complex numbers adds their angles, so the whole curve makes 11 + 0 = 11 turns around the origin. This is what I mean by equilibrium. If the two rotating terms had equal weight, they would cancel at z = i. The curve would pass through the origin and the winding number would be undefined. With the weights used here, the later rotations can alter the shape, but even their combined strength cannot cancel the first one. The arithmetic determines which terms survive. The geometry reads the smallest surviving exponent as a whole number of turns. In this example we used 11 and 13 to show why the answer is 11. The solver itself starts with 7, reconstructs the polygon from zeta data, and checks that its error is too small to change the count. That last step is what allows the calculation to certify its own answer. I developed this work with ChatGPT as part of my Prime Infinity project. This release includes the mathematical argument, the runnable solver and the certificates for those three calculations.
Authors
- Andrew Callaghan
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24713503
- Primary Topic
- Analytic Number Theory Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00