Zeta Zeros
Display
Theme
Motion

Zeros and primes

Zeros and primes

The primes go into ζ(s) through Euler’s product. They come back out through the zeros: each conjugate pair of zeros adds one wave to the prime-counting staircase. Drag the slider to add zeros yourself.

  • Settled standard mathematics, or computed here on a stated range
  • Open a conjecture or an unfinished item

Figures on this page

Every thumbnail is computed from real data or cited tables. Click to jump to the full figure and its provenance caption.

Primes and the Euler product

Settled Every integer greater than 1 factors into primes in exactly one way, up to order. Euler turned that unique factorization into an identity of functions. For real part greater than 1, the series over the positive integers and the product over the ordinary primes are the same function.

ζ(s) = Σ n^(−s) = Π_p (1 − p^(−s))^(−1), for Re(s) > 1.

Euler’s product, convergent for real part greater than 1. The primes are the raw material of ζ(s). The product is not a convergent product on the critical line.

Building the product one prime at a time

Each prime contributes one factor, 1/(1 − p−s). The animation multiplies them in one at a time, starting from the empty product (just 1), and compares the running product with the true size of ζ(s) on two vertical lines to the right of the critical strip. Drag the step slider to stop at any prime.

Figure 1 Euler product, prime by prime Settled

|ζ(σ + it)| for 0 ≤ t ≤ 40 on σ = 2 (top) and σ = 1.2 (bottom), dashed, against the partial product over primes p ≤ P, teal. Steps: the first 15 primes one by one, then all primes up to 100, 1000 and 10 000 (25, 168 and 1229 primes). Products computed in double precision with numpy; ζ with mpmath 1.4.1 at 25 digits, 8 October 2026 PT. “Largest gap” is the maximum of |product − |ζ|| / |ζ| over the window. Motion is off if your system asks for reduced motion; the figure then shows the last step. Settled The product formula is a theorem for Re s > 1.
  • Settled Each factor expands as 1 + p−s + p−2s + …. Multiplying the factors for all primes produces every term n−s exactly once, because every integer factors into primes in exactly one way. After the primes up to P, what is still missing is roughly the size of P1−σ, so the product settles quickly at σ = 2, slowly at σ = 1.2, and not at all at σ = 1 or to its left.
  • Settled Computed here On σ = 2, the prime 2 alone already gets within 19% of |ζ| everywhere in the window. The first 15 primes (up to 47) get within 0.39%, and all 1229 primes below 10 000 get within 0.001%. On σ = 1.2 the same steps give 68%, 27% and 5.9%. Ten thousand is not nearly enough there.
  • Settled Computed here On σ = 1.2, six of the seven dips in |ζ| sit within 0.15 of the height of one of the first six zeros on the critical line (t = 14.13, 21.02, 25.01, 30.42, 32.94, 37.59; red marks). The dip near t = 3 has no zero above it. Settled Caveat The zeros cast a shadow to the right that the primes can reproduce, but the product never reaches the zeros themselves: they lie where the product does not converge. This is a picture, not a zero detector, and it says nothing about the Riemann Hypothesis.

The harmonic series is the case s = 1. It diverges, so the product diverges, so there are infinitely many primes. That argument is eighteenth-century. It is not the Riemann Hypothesis.

At s = 1 the continued function has a single simple pole, with residue 1. Riemann’s 1859 memoir continues ζ(s) to a meromorphic function on the whole plane. Inside the critical strip the primes are still in the function, but not by substituting a real part of 1/2 into the product. They re-enter through the explicit formula below.

ξ(s) = (1/2) s(s−1) π^(−s/2) Γ(s/2) ζ(s), and ξ(s) = ξ(1−s).

Riemann’s completed ξ-function. The functional equation is classical. The poles of the gamma factor force the trivial zeros of ζ at the negative even integers.

Figure 2 Completed ξ on the critical line Settled

Graph of capital Xi of t, which is xi of one half plus i t, for t from minus 40 to 40. The teal curve is symmetric about t = 0, starts near 0.5 at the origin, and crosses zero at twelve red dots: the first six positive and six negative nontrivial-zero ordinates, from about plus or minus 14.13 out to about plus or minus 37.59. The vertical scale stretches small values so the later crossings stay visible.
Ξ(t) := ξ(1/2 + it) for −40 ≤ t ≤ 40, computed with mpmath 1.4.1 at 30 digits from the classical formula ξ(s) = ½ s(s−1) π^(−s/2) Γ(s/2) ζ(s), 13 October 2026 PT. Vertical scale is a signed asinh so the tiny swings past the first zero stay visible beside Ξ(0) ≈ 0.497. Red dots: ±γn for n = 1…6 (ordinates from mpmath.zetazero). The curve draws itself on load; motion is off if your system asks for reduced motion. Settled Ξ is real and even for real t, and its zeros are exactly the nontrivial zeros’ ordinates — theorems; the plot is a check on a finite window.
  • Settled Why Ξ is real: the factors in ξ cancel the complex phase of ζ on the critical line, just as Hardy’s Z does. Plotting Ξ therefore shows sign changes, not only a modulus touching zero.
  • Settled Why Ξ is even: ξ(s) = ξ(1 − s) together with conjugation symmetry forces Ξ(−t) = Ξ(t). The mirror image across t = 0 in the figure is that identity, not a coincidence of the window.
  • Settled The zeros of Ξ on the real t-axis are exactly the imaginary parts of the nontrivial zeros of ζ. The Riemann Hypothesis is the claim that every nontrivial zero has real part 1/2 — equivalently, that every zero of Ξ is real. Open Whether every zero of Ξ is real.

A gas whose partition function is ζ

Physicists describe a hot gas with a partition function: add up e−β·energy over every state the gas can be in, where β is one over the temperature. In 1990 Bernard Julia, and independently Donald Spector, noticed a toy gas that turns this into ζ. Give it one kind of particle per prime p, with energy ln p, and let any number of them pile up. A state of the whole gas is then a whole number n (its prime factors say which particles are present), its energy is ln n, and the partition function is 1 + 1/2β + 1/3β + … = ζ(β). That is Euler’s product, read as physics. It is called the primon gas.

At β = 1, ζ has its one pole, so the partition function blows up and the gas cannot be cooled below that point. In 1995 Jean-Benoît Bost and Alain Connes built a sharper version, a quantum system with the same partition function but also a symmetry group, and proved that something real happens at β = 1. When it is hot (β ≤ 1) there is exactly one equilibrium state, and it is symmetric. When it is cold (β > 1) there are many, and the symmetry group shuffles them, so picking one breaks the symmetry. That is spontaneous symmetry breaking, the same idea as a magnet choosing a direction when it cools, here with ζ as the partition function.

Figure 3 A gas whose partition function is ζ

Top left: a curve of ζ(β) for real β from 1 to 4 on a log scale, rising steeply toward a dashed red line at β = 1 and closely following a dashed gold curve 1/(β − 1). Marked values: ζ(3) ≈ 1.2021, ζ(2) ≈ 1.6449, ζ(1.5) ≈ 2.6124, ζ(1.1) ≈ 10.584, ζ(1.01) ≈ 100.58. Top right: bars for the chance of each state n from 1 to 12; at β = 2 state 1 has 61 percent, at β = 1.1 only 9 percent. Bottom, a schematic: on the hot side one dot, a single symmetric equilibrium state; an arrow labeled cool past β = 1; on the cold side a slowly turning ring of dots, many equilibrium states shuffled by the symmetry group. A red footer says this is about the pole at s = 1 and says nothing about the zeros or the Riemann Hypothesis. The curve draws in and the ring turns; motion stops if you ask for reduced motion.
Top panels computed 29 October 2026 PT with mpmath 1.4.1 at 30 digits for 400 values of β between 1.001 and 4; ζ(2) matches π²/6 to the working precision. Near β = 1, ζ(β) − 1/(β − 1) settles to Euler’s constant γ ≈ 0.5772, which is why the two curves hug. The chance of state n is n−β/ζ(β). The bottom row is a schematic, not a computation: 16 dots stand in for infinitely many cold equilibrium states. This figure is about the pole of ζ at s = 1, on the real line. It says nothing about the nontrivial zeros or the Riemann Hypothesis. Motion stops if your system asks for reduced motion.
  • Settled The primon gas identity Z(β) = ζ(β) for β > 1 is exact; it is Euler’s product written as a gas of free particles (Julia 1990; Spector 1990, who also read the Möbius function as the physicist’s “fermion sign”).
  • Settled Bost–Connes (1995), main theorem: for 0 < β ≤ 1 there is a unique equilibrium (KMS) state; for β > 1 the extreme equilibrium states are permuted by the symmetry group, which is the Galois group of the field made by adjoining all roots of unity to the rationals, Gal(Qab/Q) ≅ Ẑ*. The cold states, fed arithmetic inputs, output roots of unity, a link to class field theory.
  • Open Not a route to RH, as far as is known The transition sits at the pole, β = 1 on the real axis. No result connects this symmetry breaking to where the nontrivial zeros lie. Connes later built a different program on related spaces that restates RH, without proving it; the Hypothesis stays open.

The explicit formula

Deninger has proposed a dynamical counterpart of this identity: a transversal index, or Lefschetz, trace formula for a flow on a foliated space, with closed orbits in the role of primes. The correspondence is a published proposal; the space that would make it a theorem about ζ has not been constructed, and it is not a proof of RH. Illustrated primer: Foliations and Deninger’s picture.

Settled Theorem about whatever zeros exist It does not force those zeros onto the line.

Write ψ(x) for the Chebyshev function: the sum of log p over prime powers pk ≤ x. It is a staircase that tracks the primes, weighted so that a prime power pk contributes log p. The explicit formula writes that staircase as a smooth main term plus a sum of oscillations, one from each nontrivial zero.

ψ(x) = x − Σ_ρ x^ρ/ρ − log(2π) − (1/2) log(1 − x^(−2)).

Classical explicit formula for x > 1 not a prime power. The sum runs over nontrivial zeros, taken symmetrically in order of increasing imaginary part. Riemann sketched it; von Mangoldt made it precise. Textbook accounts: Edwards, Titchmarsh, Ivić.

The picture below is that identity cut off after five conjugate pairs, and again after the twenty pairs just computed. The staircase is exact: ψ(x) is the sum of log p over prime powers pk ≤ x. Both smooth curves use the classical formula. The imaginary part of the zero-sum cancelled to numerical noise, so the arithmetic is stable. The remainder does not shrink at every x.

x − Σ x^ρ/ρ − log(2π) − (1/2) log(1 − x^(−2)), summed over the first five pairs, and separately over the first twenty.

Figure 4 Explicit formula, 5 and 20 pairs Settled

Graph of psi of x as a red staircase from 0 to 100, a gold dashed curve for the five-pair truncation, a teal curve for the twenty-pair truncation, and a gray dashed line for the main term y = x. The two truncations both track the staircase and are hard to tell apart at this scale.
Computed for x ≤ 100. Gold dashes: five pairs. Teal: twenty pairs. They lie on top of each other at this scale; the next figure is the difference. Signed residual ψ minus truncation, five pairs then twenty: at x = 10, +0.260 then −0.073; at x = 20, +0.108 then −0.072; at x = 50, +0.318 then +0.229; at x = 100, −0.774 then −1.637; at x = 200, +4.738 then +2.320. Smaller at some of these x, larger at x = 100. The sum over zeros is conditionally convergent, so a longer truncation is not automatically a closer one at a fixed x. Settled Stable arithmetic, not a monotone error. Not a proof that every zero has real part 1/2.

Figure 5

Three curves of the signed residual of the explicit formula as the number of conjugate pairs runs from 1 to 20. At x = 100 the residual starts near −3 and wanders near −1.5. At x = 20 and x = 50 it stays within about half a unit and does not fall steadily to zero.
Same computation, residual against N for x = 20, 50, and 100. N = 5 and N = 20 are on the horizontal axis. The curves wander. They do not march to zero. That is the honest content of “does the residual shrink?”: not steadily, on this range. Imaginary leakage in the zero-sum was below 10−8, so this is not a numerical blow-up.

Figure 6 Interactive: choose N pairs Settled

Interactive · computed in your browser

This figure needs JavaScript. The two static figures above show the same computation for N = 5 and N = 20.

Drag the slider or press Play. The teal curve is x − Σ xρ/ρ − log 2π − ½ log(1 − x−2) summed over the first N conjugate pairs; the red staircase is the exact ψ(x); the lower panel is the difference, clipped at ±4. Zeros: the first 100 ordinates from Odlyzko’s table (up to γ100 ≈ 236.524). Your browser does the arithmetic, and it was checked against an independent Python run for every N from 0 to 100. On the grid x = 2.05, 2.15, …, 99.95, the root-mean-square residual falls from 1.571 with no zeros to 1.112 at N = 5, 0.847 at N = 20, 0.641 at N = 50 and 0.499 at N = 100. The largest residual on the grid falls far more slowly (5.64, 3.30, 3.17, 2.48, 2.37), and it always sits next to a prime power, where ψ jumps and a finite sum of smooth waves cannot follow. So the truncation improves on average but not at every x, which is the point of the two figures above. Settled The formula is a theorem; this is arithmetic with known zeros. Open Not a proof that every zero has real part 1/2.

Settled Why a longer sum need not help at every x Each omitted zero contributes a term of size about xβ/|ρ| that oscillates in log x. Adding the next conjugate pair is adding another wave, not subtracting a positive remainder. At a fixed x those waves can reinforce or cancel the current residual. That is ordinary Fourier-style arithmetic, not a defect of the computation. It is why the residual figure above does not fall steadily as N grows, and why the five-pair and twenty-pair curves can trade places depending on x. The full sum is an identity about the zeros that exist. A finite truncation is not a monotone approximation of that identity, and it is not a proof that every zero has real part 1/2.

The intuition is ordinary complex arithmetic. If a zero is ρ = β + iγ, then

x^ρ = x^β (cos(γ log x) + i sin(γ log x)).

Each zero contributes a wave in ψ(x). The height γ sets the frequency. The real part β sets how fast the amplitude grows.

On the critical line, β = 1/2, so the wave has size about √x divided by |ρ|. A zero with real part β > 1/2 would leave a larger ripple, of size about xβ. The primes would then fluctuate more than the square-root scale. In that precise sense the zeros control the irregularity of the primes: the explicit formula is an identity, and the real parts of the zeros are the exponents in its error.

The identity holds for the zeros that exist, wherever they sit in the strip. Moving a zero off the line changes the size of its term. It does not break the formula. So the formula explains why the location of the zeros matters. It is not itself a proof that they all have real part 1/2.

Octonion counts: which count hears the zeros?

[project, exact from established factors] First choose what is being counted. Our octonion orders have global ideal zetas ZK(s)=ζ(8s)CK(2−s). It is tempting to rebuild the ordinary ideal count from that pole and those zeros. But zeros do not contribute residues to the integral for the ordinary count. Here the count is simpler: a finite sum of rounded eighth roots, with an error that stays bounded forever.

Write AK(x) for the number of right ideals of additive index at most x, and CK(z)=Σ cjzj. An ideal means a finite-index additive lattice L with L·K⊆L, as on the global octonion page; octonion multiplication need not be associative.

A_K(x) = sum_j c_j floor((x/2^j)^(1/8)); −C_K(1) < A_K(x) − μ_K x^(1/8) ≤ 0.

Here μK=CK(2−1/8). The error bounds CK(1) are 192,162,8,1 for G,S₁,R,E₈. Nonnegative coefficients prove this for every x, not just the plotted samples.

[known / project adaptation] Zeros enter a different observable. Taking −Z′/Z makes each zero into a pole. Its coefficients are signed weights, not numbers of ideals or octonion prime ideals. Their summatory function B has two parts: eight times the ordinary prime-power staircase at x1/8, plus a separate contribution supported only at powers of 2.

Figure 7 Octonion counts: which count hears the zeros?

Four panels distinguish counts from a signed diagnostic: bounded normalized ideal-count errors for G, S1, R and E8; a shared rescaled-zero reconstruction using 5, 20 and 100 pairs; signed jumps at powers of two; and exact counts at index bound 2 to the power128. The ideal count itself has no zero-residue waves.
[project, computed] A: exact count errors in a fixed strip, four kinds. B: the common zero-sensitive part, normalized by 8x1/16; grey joins exact arithmetic samples, colours use 5,20,100 previously certified zero pairs. C: signed local weights bk at index 2k, explicitly shown on a signed-log scale. D: large-bound counts. Curves join 513 logarithmically spaced samples, not every jump. Two exact counting methods and independent numerical evaluations agree; finite zero truncations are not rigorous remainder bounds. No new animation: the existing N-slider already teaches the classical truncation.

The zero waves belong to B, not A

Define bK(k) by zC′K(z)/CK(z)=Σ bK(k)zk. Initially far enough to the right, −Z′/Z equals 8(−ζ′/ζ)(8s)+(log2)zC′/C. Therefore its half-weighted summatory function is exactly:

B_K,0(x) = 8 psi_0(x^(1/8)) + (log 2) sum*_{2^k ≤ x} b_K(k).

The star gives half of a term when 2k=x; ψ₀ likewise uses half-weight at prime powers. Ordinary right-continuous sums instead use full weight. These conventions matter at jumps.

[known] Substitute y=x1/8 in the classical explicit formula above. Its main term becomes 8x1/8, and an inherited zero contributes −xρ/8/(ρ/8). For a checked pair ρ=½±iγ, the carrier size is x1/16 and frequency in log x is γ/8. A zero off the ordinary half-line, if one exists, would give a different exponent. We use only the first 100 already-certified pairs; we assume nothing about all other zeros.

The prime-2 part is not necessarily a small wobble. At index16 its signed weights b4 are −39,−446,−14,0 for G,S₁,R,E₈. Negative jumps are one reason not to call B a prime-ideal count. Some local zeros have real parts much larger than 1/16, so their diagnostic terms can dominate the inherited waves.

How the local zero columns rebuild the signed jumps

If C(z)=Π(1−αz), then bk=−Σαk. For nonintegral u=log₂x and m=⌊u⌋, the entire local contribution is the finite geometric sum −(log2)Σα(1−αm)/(1−α). Each α also gives a vertical zero column sn=(Logα+2πin)/log2, with spacing 2π/log2 in imaginary height. The exact same contribution is (log2)C′(1)/C(1)−ΣcolumnsΣnxsₙ/sn, with a symmetric column-index limit. At jumps use midpoint values.

The notes prove this Fourier identity and check finite column cuts independently. A column has an exponential carrier times a periodic modulation in log₂x; the whole sum need not be purely log-periodic. These columns belong to the signed diagnostic, not to the ordinary ideal-count error.

[project, computed] The exact counts agree through bound 2128 by finite-correction and odd-part algorithms, plus a separate 394,809-event enumeration at that bound. Every integer prefix through 218 was checked. Signed local coefficients through k=128 agree by polynomial division and integer matrix traces. On the plotted grid, normalized RMS errors for 5,20,100 inherited pairs are 0.149,0.109,0.066; more terms need not improve every point. Double/110-digit evaluations differ by less than 1.7×10−12.

What this adds to the program. It separates all-ideal counting from a zero-sensitive signed diagnostic. Once its exact prime-2 part is removed, B is simply the classical prime-power count with a rescaled input. New odd-prime information would require another order family or another explicitly defined counting object—not a new interpretation of these same waves. Orders that are imperfect at 3 now supply such odd-prime terms. Next mathematical questions concern controlled smoothing/truncation and an arithmetic explanation of the local polynomial, not an RH claim.

Proofs, scope and independent checks · computation · exact counts and plotted data · Kedlaya, analytic number theory notes, Theorem9.9. Classical textbook reference: Davenport, Multiplicative Number Theory, §17. This is factor-derived computation, not a new enumeration of ideal lattices.

How far the primes stray: π(x), li(x) and R(x)

What RH would imply for these error terms is summarized on the Riemann Hypothesis page.

Open Conditional These are consequences of RH, or equivalents of it. They are not theorems of this project, and they are not known unconditionally at this strength.

What is unconditional, and visible on a small range, is that π(x) tracks the logarithmic integral. The curve is mpmath.li, the Cauchy principal-value li(x). The staircase is a sieve. Recomputed 3 October 2026 PT out to 1000. Checkpoints: at 10, π = 4 and li ≈ 6.166; at 100, π = 25 and li ≈ 30.126; at 200, π = 46 and li ≈ 50.192; at 500, π = 95 and li ≈ 101.794; at 1000, π = 168 and li ≈ 177.610. On this range li(x) sits above π(x). That is a picture of the prime-number theorem’s main term. It is still far too short to test the square-root error the Hypothesis would give, and it is not offered as evidence for the Hypothesis.

Figure 8 π(x) and li(x) Settled

Graph from x = 0 to 1000. A red staircase is π(x), ending at 168. A teal curve is li(x), ending near 178 and staying above the staircase.
Computed, x ≤ 1000. π(1000) = 168. li(1000) ≈ 177.610. Settled A sieve and a quadrature. Open Still not a test of the square-root error, and not the von Koch bound.

The signed difference itself, out to 10 000, is the next figure. Recomputed 4 October 2026 PT: sieve for π(x), mpmath.li for the principal-value logarithmic integral, sampled every 5 from 2 to 10 000. Verified: π(1000) = 168 and π(10 000) = 1229. Checkpoints for li − π: at 100, ≈ 5.126; at 1000, ≈ 9.610; at 5000, ≈ 15.281; at 10 000, ≈ 17.137. On this grid every sample stayed positive. The largest absolute error on the grid was about 23.336, at x = 8622. No sign change was found. Skewes-type crossings of π past li are known to exist eventually, but they lie far beyond this plot. The range is still far too short to see the oscillations that would test the square-root error under RH, and the figure is not offered as evidence for the Hypothesis.

Figure 9 li(x) − π(x) to 10 000 Settled

Graph of li of x minus pi of x from x equals 2 to 10000. The jagged teal curve stays positive, rising roughly from near 0 to about 17 at 10000, with a peak near 23 around x equals 8600. Red dots mark x equals 100, 1000, 5000, and 10000. A note says no sign change was found on this grid.
Computed signed error li(x) − π(x), x ≤ 10 000. Red dots are the checkpoints above. The curve is jagged because π jumps at primes while li is smooth. Settled Every sample on this grid is positive. Open No sign change claimed — none was computed here. Skewes-type first crossings are way beyond this window. Still far too short to test the square-root error term under RH.

Riemann’s R(x): a better smooth guess

Settled Settled definition, computed comparison Riemann himself proposed a sharper smooth approximation than li(x). It corrects for prime powers, which li over-counts, using the Möbius function μ:

R(x) = Σ μ(n)/n · li(x^(1/n)) = li(x) − (1/2) li(√x) − (1/3) li(x^(1/3)) − …

Riemann’s function, computed here with mpmath.riemannr. The explicit formula says π(x) equals R(x) minus a sum over the zeros (plus small terms), so R − π is the part the zeros have to write.

Figure 10 R(x) against li(x) Settled

Graph from x = 0 to 10000 of two error curves against pi of x. The gray curve, li minus pi, drifts upward to between about 14 and 23. The teal curve, R minus pi, wanders around zero, mostly between minus 5 and plus 5, crossing zero many times. Red dots mark R minus pi at 100, 1000, 5000 and 10000.
Computed 6 October 2026 PT: sieve for π(x), mpmath.li and mpmath.riemannr (mpmath 1.4.1, 25 digits), sampled every 5 from 2 to 10 000 (2004 samples). R − π at the red dots: +0.662 at 100, +0.359 at 1000, −0.054 at 5000, −2.069 at 10 000, where π = 1229 and R ≈ 1226.931. On this grid max |R − π| ≈ 5.41 (at x = 9932), against max |li − π| ≈ 23.34 (at x = 8622); the mean absolute error is about 1.31 for R and 14.49 for li. R − π is positive at 48.4% of samples, so unlike li − π it changes sign many times. Settled A better main term on a short range. Open Not a test of the Hypothesis: R is not always closer than li, and no bound on the error is drawn.
  • A classical equivalence, with one direction due to von Koch (1901), is that RH holds if and only if ψ(x) = x + O(x1/2 log2 x). In the same circle of ideas, π(x) = Li(x) + O(x1/2 log x). The prime number theorem is the weaker, proved statement that the error in ψ(x) is o(x). That follows from the zero-free line Re(s) = 1. RH would replace “little-o of x” with a square-root bound.
  • Under RH, consecutive prime gaps satisfy pn+1 − pn = O(√pn log pn), a theorem of Cramér. Unconditional bounds are of the shape O(pnθ) for some θ > 1/2. RH would bring the exponent down to the square root.
  • RH implies the Lindelöf hypothesis, a bound on how fast ζ grows on the critical line. Lindelöf is weaker. It does not imply RH.

Reading path · step 8 of 13