// 문제 설명
Given an integer n, count how many prime numbers are less than or equal to n.
// 입력
A single integer n (1 <= n <= 10^6).
// 출력
The number of primes not greater than n.
// 힌트
A sieve of Eratosthenes counts all primes up to n in O(n log log n).