#t49. 找素数
找素数
Count the Primes
Problem Description
Xiaoming has just learned the concept of a prime: a prime is a positive integer greater than that cannot be divided evenly by any positive integer other than and itself. Now Xiaoming wants to find out how many primes there are between two positive integers and (including and ).
Input Format
A single line containing two positive integers . It is guaranteed that .
Output Format
Output one line containing an integer , 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 and , meaning we must find all primes from to inclusive. These primes are , , , , four in total, so the output is .
Constraints