Define function as the sum of all factors of , for example .
Given and , you need to calculate
Since the answer is too large, you need to output the remainder of the answer divided by .
输入
One line, two numbers and ,
输出
One line indicates the answer.
样例
标准输入 复制文本 |
2 2 |
标准输出 复制文本 |
8 |
提示
来源
SCNUCPC 2020 现场赛