Created
July 21, 2021 06:28
-
-
Save igorvanloo/7c354e29e09333e17b6fd7c2428ceca1 to your computer and use it in GitHub Desktop.
Problem 206
This file contains hidden or 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
| def compute(): | |
| start = 101010100 | |
| end = 1389026620 | |
| while start < end: | |
| if str((start+30)**2)[::2] == "1234567890": | |
| start += 30 | |
| break | |
| if str((start+70)**2)[::2] == "1234567890": | |
| start += 70 | |
| break | |
| start += 100 | |
| return start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment