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 == 0:
- ans.append(d_l)
- d_b = n // d_l
- if d_b != d_l and d_b % 2 == 0:
- ans.append(d_b)
- d_l += 1
- ans.sort()
- return ans
- from fnmatch import *
- for x in range(65000, 10**10):
- if fnmatch(str(x), '6*97*5') and len(delit(x)) == 4:
- print(x,sum(delit(x)))
Advertisement
Add Comment
Please, Sign In to add comment