You are viewing a single comment's thread. Return to all comments →
def divisorSum(n): return n + sum([i for i in range(n//2,0,-1) if n%i==0])
Seems like cookies are disabled on this browser, please enable them to open this website
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
def divisorSum(n): return n + sum([i for i in range(n//2,0,-1) if n%i==0])