Gomory has just studied Goldbach’s conjecture, which sparked his interest in prime numbers. Now, together with Hu, he is asking several questions related to numbers contained in certain intervals.
Task
You are given multiple queries of the form: “How many numbers with odd divisors are in the range ?”.
You must output the answer to each query, on a separate line.
Input Data
From the first line, an integer will be read, representing the number of queries.
From each of the next lines, two numbers separated by a space will be read, the first representing the left endpoint of the query, and the second representing the right endpoint of the query.
Output Data
You must output lines. The -th line must contain a single number representing the answer to the -th query.
Constraints
- , for each from to
| # | Points | Restrictions |
|---|---|---|
| 1 | 40 | |
| 2 | 60 | No additional constraints |
Example
stdin
1
1 20
stdout
2
Explanation
In the range there are only two numbers with odd divisors. These are 9 and 18. Their divisors are: , , ; respectively: , , , , , .