Find the number of primes among 1,2,⋯,N.
One line containing an integer N.
One line containing an integer, representing the number of primes.
10
4
For 40% of the testdata, 1≤N≤106.
For 80% of the testdata, 1≤N≤107.
For 100% of the testdata, 1≤N≤108.
Translated by ChatGPT 5