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