Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pd_sum2(n):
- pd = 1
- for x in xrange(2, int(n**.5)):
- if n % x == 0:
- pd += x + n//x
- x += 1
- if x*x == n:
- pd+=x
- return pd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement