Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- answ = 1000000000
- for x in range(100):
- for y in range(100):
- if x+y+1 <= 40:
- continue
- sm = 3 * y + 2 * x * 2
- f = True
- for i in range(2, int(sm**0.5) + 1):
- if sm%i == 0:
- f = False
- break
- if f:
- answ = min(answ, 2 * y + x)
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment