#P2557. [AHOI2002] 芝麻开门
[AHOI2002] 芝麻开门
Description
On the weekend, little Keke takes part in a brain-power surfing challenge and finally reaches the last level, "Open Sesame." The electronic display on the door says: If you can correctly write on the door the sum of all positive integer divisors of , and say "Open Sesame," the door will open freely.
For example: , , then . Its positive divisors are . If Keke writes their sum on the door and then says "Open Sesame," the door will open automatically.
It is known that the values and on the door change from time to time. Please write a program to help Keke compute the answer within the allotted time, so as to win the final prize of the challenge.
Input Format
One line with two positive integers and .
Output Format
One line with one integer representing the answer.
1 1
1
2 2
7
Hint
, .
The answer has at most digits.
Translated by ChatGPT 5
京公网安备 11011102002149号