EasyRating 1050
Twin Primes
Twin primes are pairs (p, p + 2) where both are prime. Count the pairs with p + 2 ≤ n.
Input
One integer n (1 ≤ n ≤ 10⁵).
Output
One integer.
Sample 1
Input
10
Output
2
Sample 2
Input
1
Output
0
Output appears hereOne integer n (1 ≤ n ≤ 10⁵).
One integer.
10
2
1
0
Output appears here