Number of Primes: How Computers Evaluate

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
matqkks
Messages
283
Reaction score
6
How do computers evaluate the number of primes below a given integer?
 
Mathematics news on Phys.org
matqkks said:
How do computers evaluate the number of primes below a given integer?
This depends on so many parameters, that it can't be answered, except perhaps by the sieve of Eratosthenes, or simply by ##|\pi(x)-\operatorname{Li}(x)|<\dfrac{\sqrt{x}\ln x}{8\pi}##.

The literature has many algorithms as well as estimations for ##\pi(x)##. Just search for them.
 
  • Like
Likes   Reactions: Janosh89