Given $n$ then $n$ integers (one per line), print the sum of the divisors of each, in input order, one per line.
Input
First line $n$ ($1 \le n \le 100$); then $n$ integers, each in $[1, 10000]$, one per line.
Output
Print the divisor sum of each integer, one per line.
Example 1
Input
3 6 10 12
Output
12 18 28
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.