#H2026D. Divisor Dash
Divisor Dash
Description
Viznan has an instant-kill skill, but its activation condition is demanding.
Let denote the number of positive divisors of . When facing an enemy with health points, the amount of damage Viznan must deal to activate the skill is
Given and , calculate the required amount of damage.
Input Format
This problem contains multiple test cases.
The first line contains two integers and , where is the number of test cases and is the test-data identifier. The value of does not affect the answers.
Each of the next lines contains two integers and , describing one test case.
Output Format
For each test case, output the value of on a separate line.
Sample
Input #1
3 0
5 5
10 5
6 10
Output #1
6
8
12
Sample Explanation
For the first test case, , , , , and . Therefore, the answer is .
For the second test case, , , , , and . Therefore, the answer is .
For the third test case, , , , , , , , , , and . Therefore, the answer is .
Constraints
For all test cases:
- ;
- .
相关
在下列比赛中: