Let π(N) be the number of primes less than or equal to N (example: π(100) = 25). The famous prime number theorem then states (with ∼ meaning asymptotically equal):
π(N) ∼ N/ log(N)
Proving this theorem is very hard. However, we can derive a statistical form of the prime number theorem. For this, we consider random primes which are generated as follows:
(i) Create a list of consecutive integers from 2 to N.
1
Expert's answer
2020-11-18T18:37:53-0500
By Euclid's theorem, we know that there exist infinitely many primes. Of course, this means that π is an increasing function and that π(x)→ ∞ as x→ ∞. Intuitively we see that prime numbers appear to be more sporadic as they become larger, but we would like to describe more precisely the asymptotic behavior of π. This is formalized by the following famous theorem.
Theorem: (Prime number theorem). Letπbetheprimecountingfunctionandlogbethenaturallogarithm.Thenagoodasymptoticapproximationofπisgivenbythefunction
(i) Create a list of consecutive integers from 2 to N .
(ii) Start with 2 and mark every number >2 with a probability of 21 .
(iii) Let n be the next non-marked number. Mark every number >n with a probability of n1 .
(iv) Repeat (iii) until you have reached N .
All the non-marked numbers in the list are called randomprimes .
(a) Let qn be the probability of n being selected as a random prime during this algorithm. Find an expression for qn in terms of qn−1 .
(b) Prove the following inequality of qn and qn+1:
Again considering the 2×1017th prime number 8 512 677 386 048 191 063, this gives an estimate of 8 512 681 315 554 715 386; the first 5 digits match and relative error is about 0.00005%.
Rosser's theorem states that;
pn>nlogn.
This can be improved by the following pair of bounds:
(d) With this result, derive an asymptotic expression for qn in terms of n .
qn∼nlogn
(e) Let π(N) be the number of randomprimes less than or equal to N . Use the result from (d) to derive an asymptotic expression for π(N) , i.e. the prime number theorem for randomprimes.
Comments