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:
- ;
- .