Buddy is known for his love for primes. He claims that if given a number he can instantly tell wether it is a prime or not. Golu challneges his this claim and gives Buddy numbers and , times and asks him to tell the number of primes between and ( and included). Buddy lately has been quite rusty with his knowledge of primes as he is out of practice and hence asks for your help so that he can prove his claim right. Help him to tell count of primes from to .
Constraints:
1 ≤ ≤ 105
1 ≤ ≤ ≤ 107
0 ≤ ≤ 103
Input:
First line of the input contains the number , Each of the next lines contain numbers and .
Output:
For each given and , print the count of number which are prime between and ( and included) in a new line.
There are 3 prime number between 1 and 5 which are 2, 3 and 5.
There are 2 prime number between 7 and 11 which are 7 and 11.