LearnPy Hub
← Arena
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
solution.py
Output appears here
Twin Primes · Python Arena problem · LearnPy Hub