Illustrated · 2 min

How Many Primes Are There?

This is a question pretty much everyone who has encountered primes wonders. So did Carl Fredrich Gauss, and after observing a lot, he conjectured that there are nearly xln⁡x\dfrac{x}{\ln x} primes less than or equal to xx for a real number xx. The number of primes less than or equal to xx is denoted by π(x)\pi(x). So, according to Gauss, as xx grows bigger, π(x)\pi(x) gets close to xln⁡x\frac x{\ln x}. But Gauss couldn't prove it himself. It was unproved for about 100100 years and the conjecture became known as the Prime number theorem. Later mathematicians like Chebyshev and Hadamard worked on this.

For x=10x=10, π(x)=4\pi(x)=4. For x=100x=100, π(x)=25\pi(x)=25. As you can see, the error in π(x)\pi(x) and xln⁡x\frac x{\ln x} reduces as xx gets bigger. Probably a table would be nicer for this purpose. You can search for more information on these values.

Graph of ratio of prime counting function (taken from Wikipedia)

See the graph to have an idea about the error term. The blue line is the line we are talking about. The one below considers another function.

Anyway, the first proofs of prime number theorem belonged to analytical number theory. Alte Selberg and Paul Erdos together found an elementary proof of this theorem for the first time, though there was a dispute about it, we will not get into that. Personally, after reading an article written by someone close to both of them, I think that Selberg provided the main theorem (which is now known as the famous Selberg Identity). Later Erdos proved prime number theorem using that identity. So, the credit goes to both. Though I am not sure if Selberg proved it later himself. From what I read, it took about one or two hours for Erdos to prove it after he saw Selberg's theorem.

Summary is, prime number is a really fascinating idea for mathematicians. Now there is a branch called prime number theory dedicated to research on prime numbers. It is quite rich already, and it will get richer. So, it is of huge importance.

Interactive · 1 question

Euclid showed that there are infinitely many primes, but just how many are there less than a hundred? A thousand? A million?

The prime number theorem gives us a pretty good estimate: there are approximately xln⁡x\frac{x}{\ln{x}} primes less than xx, for any positive number xx.

Estimate the number of primes less than 1000.

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems