Bunty has a favorite number 4. He calls a number his favorite if it has exactly 4 distinct factors greater than 0. So Bunty wonders how many favorite numbers are there in the range [l,r]. Can you help him find that?
Input format
Output format
For each test case, print an integer - the number of favorite numbers in the given range.
Constraints
1≤T≤105
1≤l≤r≤106