Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def smpl(x):
- for d in range(2, int(x**0.5)+1):
- if x % d == 0:
- return False
- return True
- cnt = 0
- mx_num = float('-inf')
- for i in range(125_697, 190_234+1):
- dls = set()
- for d in range(2, int(i**0.5)+1):
- if i % d == 0 and smpl(d) and smpl(i//d):
- dls |= {d, i//d}
- if len(dls) == 2:
- cnt += 1
- if mx_num < i:
- mx_num = i
- break
- print(cnt, mx_num)
Advertisement
Add Comment
Please, Sign In to add comment