@thechalkface2/

Ritangle2017_Q9

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
a = 18530
b = 38114
c = 45986

def is_square(n):
  return int(n ** 0.5) ** 2 == n

for d in range(1, 100000):
  if is_square(a + d) and is_square(b + d) and is_square(c + d):
    print(d)