#t49. 找素数

找素数

Count the Primes

Problem Description

Xiaoming has just learned the concept of a prime: a prime is a positive integer greater than 11 that cannot be divided evenly by any positive integer other than 11 and itself. Now Xiaoming wants to find out how many primes there are between two positive integers AA and BB (including AA and BB).

Input Format

A single line containing two positive integers A,BA, B. It is guaranteed that 2≤A≤B≤10002 \le A \le B \le 1000.

Output Format

Output one line containing an integer CC, the number of primes found.

Sample Input

Sample Input 1

2 10

Sample Input 2

98 100

Sample Output

Sample Output 1

4

Sample Output 2

0

Sample Explanation

In the first sample, the input is 22 and 1010, meaning we must find all primes from 22 to 1010 inclusive. These primes are 22, 33, 55, 77, four in total, so the output is 44.

Constraints

2≤A≤B≤10002 \le A \le B \le 1000