Skip to content

Instantly share code, notes, and snippets.

@crclark96
Created October 18, 2017 17:03
Show Gist options
  • Save crclark96/231f7ad0e3cdb173ed996d42b5e46ead to your computer and use it in GitHub Desktop.
Save crclark96/231f7ad0e3cdb173ed996d42b5e46ead to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import math
def breaker(r):
sols = []
for i in range(10):
for j in range(100):
num = int(str(i) + str(r) + str(j))
if math.sqrt(num) - int(math.sqrt(num)) == 0:
sols.append(math.sqrt(num))
return sols
seed = 442
num = int(str(seed*seed)[1:4])
print breaker(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment