| Count DePrimes |
A number is called a DePrime if the sum of its prime factors is a prime number.
Given a
Each line contains a
Input is terminated by a line containing `0'.
Each line should contain the number of DePrimes for the corresponding test case.
In Test Case 2, take 10. Its Prime Factors are 2 and 5. Sum of Prime Factors is 7, which is a prime. So, 10 is a DePrime.
xi
b
Input
a
5000000
b
5000000
Output
Explanation:
Sample Input
2 5
10 21
100 120
0
Sample Output
4
9
9