Tính tổng các ước số của n

View as PDF

Submit solution

Points: 0.01
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Cho số n≤10000. Hãy tính tổng các ước của n từ 1 đến n


Input

12

Output

28

Note

12 có các ước số là: 1, 2, 3, 4, 6, 12

Tổng các ước của 12 là: 28


Comments

Please read the guidelines before commenting.


There are no comments at the moment.