The Music of Prime Numbers: Rhythms, Laplace Transforms, and the Riemann Zeta Function

Caveat: read together with Riemann hypothesis.

Overview

This note explores the conceptual "music" or "rhythm" of prime numbers. By translating the distribution of primes into a time-domain signal using Dirac delta functions, we can analyze their frequencies using the Laplace Transform. This approach reveals a profound connection between the acoustic/rhythmic properties of prime powers and the non-trivial zeros of the Riemann Zeta Function.


1. The Rhythmic Model of Primes

The foundation of this idea stems from Chebyshev function (ψ(x)), which accumulates the logarithm of primes. If we shift this function to a logarithmic scale, ψ(et), the "jumps" (which occur at prime powers) become evenly spaced for any specific prime.

Taking the derivative of this function, ddtψ(et), yields a series of "spikes" or Dirac delta functions. Visually and acoustically, these act as a constant metronome or rhythmic beat for each prime.

2. General Mathematical Rhythms

To understand the primes, we first model simple, rational polyrhythms.

Imagine a beat happening every 1 second and another every 0.75 seconds. You can play it here. Mathematically, this signal f(t) is a sum of Dirac combs:

f(t)=∑nδ(t−n)+∑nδ(t−0.75n)

To study the frequencies of this music, we apply the Laplace Transform:

L{f(t)}=∑ne−ns+∑ne−0.75ns

These are geometric series that evaluate to:

L{f(t)}=11−e−s+11−e−0.75s

By finding the poles of this function (where the denominator is zero), we map the specific frequencies that make up the rhythm. Using the Inverse Laplace Transform, summing over these poles perfectly reconstructs the original rhythmic "ticks".
You can explore here how the ticks are located by increasing the number of poles used.
Pasted image 20260925100351.png

3. The Chaotic Polyphony of Primes

Applying this to the prime number spacing, the time-domain signal for the primes is defined by intervals of ln⁡(p). It is a polyrhythm made of lots of ticks, ticking at frequencies ln⁡(2),ln⁡(3),ln⁡(5),…

If we translate this into sound:

The key idea is that we can apply the same technique to this rhythm of the primes!

4. The Truncated Zeta

If we construct the signal using only a finite subset of primes (e.g., just 2 and 3), the Laplace transform yields an interesting result.

Let's define the function:

ζ~(s)=∏p∈{2,3}11−p−s

The Laplace transform of our truncated prime signal exactly equals the negative logarithmic derivative of this strange function:

L{f(t)}=−ζ~′(s)ζ~(s)

To reconstruct the spikes (the rhythms) in the time domain, we need the poles of this expression. The poles of −ζ~′(s)ζ~(s) correspond to the poles of ζ~′(s) and the zeros of ζ~(s).
However, ζ~(s) has no zeros, and the poles of −ζ~′(s)ζ~(s) therefore come entirely from the poles of the individual Euler factors:

s=2πikln⁡p,p∈{2,3},k∈Z.

These are precisely the frequencies of the two periodic pulse trains; summing their residues reconstructs the ticks at t=kln⁡p. So far so good.

5. The Riemann Zeta Function

The mathematical magic happens when we stop truncating and include all prime numbers to infinity.

The truncated product becomes the true Riemann Zeta Function:

ζ(s)=∏p11−p−s=∑n=1∞1ns

We now apply the Laplace Transform to this "Prime Dirac Comb":

L{ddtψ(et)}=∫0∞(∑p,kln⁡(p)δ(t−kln⁡(p)))e−stdt

Due to the properties of the Dirac delta, the integral simply evaluates e−st at every spike. Through a standard (but profound) algebraic manipulation involving the Euler Product formula, this infinite sum of primes remarkably collapses into a single analytic expression:

L{ddtψ(et)}=−ζ′(s)ζ(s)

Where ζ(s) is the famous Riemann Zeta function.
That is, the Laplace transform of the prime numbers polyrhythm is exactly the logarithmic derivative of the Riemann Zeta function. Therefore, the "DNA" of the primes is located exactly at the poles of −ζ′(s)ζ(s).

Unlike the truncated version, the true Riemann Zeta function does have zeros—specifically, the infinitely many non-trivial zeros lying in the critical strip.

Where do these poles live, and what do they build?

  1. The pole of the Zeta Function (s=1): The pole of ζ(s) at s=1 becomes a pole of −ζ′(s)/ζ(s) with residue 1. Its inverse Laplace contribution is et, the main deterministic trend of the prime-power signal. In the original scale x=et, this is simply x.
  2. The trivial zeros (s=−2,−4,−6,…): These zeros become poles of −ζ′(s)/ζ(s) with residue −1 each. In the inverse Laplace transform, they contribute −∑n=1∞e−2nt=−1e2t−1, a purely exponentially decaying correction to the prime-power signal.
  3. The non-trivial zeros (s=ρ=σ+iω): Each non-trivial zero becomes a pole of −ζ′(s)/ζ(s) at ρ and contributes −eρt to the prime-power signal. The zero sum is understood symmetrically; conjugate pairs produce the oscillations, while σ determines the envelope.

Together, these three components give the following analytical expression for the prime-number polyrhythm:

ddtψ(et)=et−1e2t−1−∑ρeρt

You can explore here how the primes are located by increasing the number of non-trivial Riemann zeta zeroes are used!
Pasted image 20260925105851.png
So the zeros of the Riemann zeta function encode the information about primes. Now, you can proceed to understand the importance of Riemann hypothesis.