Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #2 (x-12, x+12) -> 24 - 12
- # x == 12 + 2*k -->
- print(math.gcd((24+2*41)-12, (24+2*41)+12), 24+2*41)
- for i in range(101, 1000):
- x = i
- L = x - 12
- M = x + 12
- while L != M:
- if L > M:
- L -= M
- else:
- M -= L
- if M == 2:
- print(i)
- break
Advertisement
Add Comment
Please, Sign In to add comment