P678 [CF640F] Primes in Interval
提高-
题目描述

You are given two integers a and b (a ≤ b). How many prime numbers are there on the interval from a to b, inclusive?

Input

The input contains two integers a and b (2 ≤ a ≤ b ≤ 1 000 000), separated by a single space.

Output

Output a single integer — the number of primes between a and b, inclusive.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
10 20
样例输出
4