Count the divisors of every integer in the range [L,U] and report the largest count. Both endpoints L and U belong to the range. A divisor count includes 1 and the number itself.
Input
The first line contains the number of ranges C.
Each of the next C lines contains the two endpoints L and U of one range, separated by a space.
Constraints
1≤C≤10
1≤L≤U≤107
0≤U−L≤1000
Output
For each range, print one line with the largest divisor count found in that range.