#P2424. 约数和
约数和
Description
For a number , the function denotes the sum of all divisors of . For example, . For a given , Smart can quickly compute . Now, given two positive integers and (), Smart wants to quickly compute the value of . Can you help Smart compute this value?
Input Format
The input contains only one line with two positive integers and (), indicating that you need to compute .
Output Format
Output a single line containing the value of .
2 4
14
123 321
72543
Hint
For of the testdata, . For of the testdata, . For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号