Tổng ước

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập vào số nguyên dương \(n\). Hãy tính tổng các ước của \(n\).

Input

  • Số nguyên dương \(n\) (\(1 \le n \le 10^{6}\)).

Output

  • Một số nguyên là tổng các ước của \(n\).

Example

Test 1
Input
6
Output
12
Test 2
Input
7
Output
8

Comments

There are no comments at the moment.