summaryrefslogtreecommitdiff
path: root/day1/exercise/aliquot.py
blob: f07cd7704f26f581319c9bacbd7c056121a8e6fe (plain)
1
2
3
4
5
6
7
8
def aliquot(n):
    sum = 0
    for i in range(1, (n/2)+1):
        if n % i == 0:
            sum += i
    return sum

print aliquot(14)