Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dsum(a):
- res = 1
- for i in range(2,a // 2 + 1):
- if a % i == 0:
- res += i
- return res
- for i in range(1,50000):
- s = dsum(i)
- if dsum(s) == i:
- print(i,s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement