Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def delit(n):
- ans = []
- d_l = 1
- while d_l * d_l <= n:
- if n % d_l == 0 and d_l % 2 == 1:
- ans.append(d_l)
- d_b = n // d_l
- if d_b != d_l and d_b % 2 == 1:
- ans.append(d_b)
- d_l += 1
- ans.sort()
- return ans
- from fnmatch import *
- for x in range(0, 10**7, 217):
- if fnmatch(str(x), '14?4*'):
- print(x, sum(delit(x)))
Advertisement
Add Comment
Please, Sign In to add comment