Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from functools import reduce
- x = 500_000_001
- cnt = 0
- while cnt < 5:
- dls = set()
- for i in range(2, int(x**0.5)+1):
- if x % i == 0:
- dls |= {i}
- if len(dls) == 5:
- break
- if len(dls) == 5:
- pr = reduce(lambda x, y: x*y, dls)
- if pr % 100 == 91 and pr <= x:
- cnt += 1
- print(pr, max(dls))
- x += 1
Advertisement
Add Comment
Please, Sign In to add comment