summaryrefslogtreecommitdiff
path: root/progs/a658.py
blob: 790155b7ebfa314560ea24a28c05548255e2fb3b (plain)
1
2
3
4
5
6
def sum_div(number):
    divisors = [1]
    for i in range(2, number):
        if (number % i)==0:
            divisors.append(i)
    return sum(divisors)