Created
October 18, 2017 17:03
-
-
Save crclark96/231f7ad0e3cdb173ed996d42b5e46ead to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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