The Chebyshev function

Idea: when Gauss was a boy (by the dates found on his notes he was approximately 16) he noticed that the primes appear with density 1logx around x. Then, instead of counting primes and looking at the function π(x), lets weight by the natural density and look at pxlogp. Since we are weighting by what we think is the density, we expect it to be asymptotic to be x. This is the first Chebyshev function.

The second Chebyshev function, denoted by ψ(x), is defined in terms of the von Mangoldt function Λ(n):

ψ(x)=nxΛ(n),

where

Λ(n)={logpif n=pk for some prime p and k1,0otherwise.

This means that ψ(x) includes all prime powers pkx, not just primes, but weights each one by logp.
Pasted image 20260505133657.png

Why ψ(x) Counts Prime Numbers

Although ψ(x) includes powers of primes (p2,p3,), those contribute very little compared to the primes themselves.

So, ψ(x) behaves like a smoothed or weighted version of the prime counting function π(x). While π(x) simply counts 1 for each prime x, ψ(x) counts logp for each prime and its powers x.

It turns out that this function is more natural in complex analysis than the prime counting function:

The prime number theorem in this formulation states:

ψ(x)xas x.

That is, the total weight of primes and their powers up to x behaves like x. Since powers contribute little, this tells us that the primes themselves are distributed with density 1/logx.

And the exact expression for ψ(x) involves the zeroes of the Riemann zeta function. See prime counting function#Dream of a Formula for the details.