Exercise 1140Number theory › PrimesL1Added 3 Nov 2026
The prime counting function
#prime counting#pi function#estimates
Statement
Compute where is the number of primes .
Hint
Use the sieve of Eratosthenes.
Show solutionHide solution
Solution
Primes up to 30. .
Count. .
Comparison. The prime number theorem gives ; at , , close to .
Conclusion. .