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 (
- For the prime
, jumps occur at intervals of . - For the prime
, jumps occur at intervals of . - For the prime
, jumps occur at intervals of , and so on.
Taking the derivative of this function,
2. General Mathematical Rhythms
To understand the primes, we first model simple, rational polyrhythms.
Imagine a beat happening every
To study the frequencies of this music, we apply the Laplace Transform:
These are geometric series that evaluate to:
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.

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
If we translate this into sound:
- A single prime rhythm (e.g., just
) sounds like a steady metronome. - Combining
and ( and ) creates an irrational polyrhythm that never repeats. - Adding more primes (
) creates a highly chaotic, pseudo-random noise. It lacks any obvious periodicity because the logarithms of prime numbers are linearly independent over the rationals.
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
Let's define the function:
The Laplace transform of our truncated prime signal exactly equals the negative logarithmic derivative of this strange function:
To reconstruct the spikes (the rhythms) in the time domain, we need the poles of this expression. The poles of
However,
These are precisely the frequencies of the two periodic pulse trains; summing their residues reconstructs the ticks at
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:
We now apply the Laplace Transform to this "Prime Dirac Comb":
Due to the properties of the Dirac delta, the integral simply evaluates
Where
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
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?
- The pole of the Zeta Function (
): The pole of at becomes a pole of with residue . Its inverse Laplace contribution is , the main deterministic trend of the prime-power signal. In the original scale , this is simply . - The trivial zeros (
): These zeros become poles of with residue each. In the inverse Laplace transform, they contribute , a purely exponentially decaying correction to the prime-power signal. - The non-trivial zeros (
): Each non-trivial zero becomes a pole of at and contributes 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:
You can explore here how the primes are located by increasing the number of non-trivial Riemann zeta zeroes are used!

So the zeros of the Riemann zeta function encode the information about primes. Now, you can proceed to understand the importance of Riemann hypothesis.