#P7468. Counting Divisors
Counting Divisors
Counting Divisors
Problem Description
In mathematics, the function denotes the number of divisors of positive integer . For example, because are all 's divisors. In this problem, given and , your task is to calculate the following thing :
Input
The first line of the input contains an integer , denoting the number of test cases. In each test case, there are integers $l,r,k(1\leq l\leq r\leq 10^{12},r-l\leq 10^6,1\leq k\leq 10^7)$.
Output
For each test case, print a single line containing an integer, denoting the answer.
Sample Input
3
1 5 1
1 10 2
1 100 3
Sample Output
10
48
2302
Source
2017 Multi-University Training Contest - Team 4