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