#Q213. 「一本通 6.4 例 3」Sumdiv
「一本通 6.4 例 3」Sumdiv
Description
Original source: Romania OI 2002
Find the sum of all divisors of modulo .
Input Format
Input two integers and .
Output Format
Output the answer modulo .
Sample 1
, and the divisors of are . The sum , and . Thus, the output is .
2 3
15
Data Range and Hints
For all data, .