danchaofan

Euler #206

Dec 9th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. for x in range(1010101010, 1389026620, 10):
  2.     print(x)
  3.     y = str(x**2)
  4.     if y[0] == "1" and y[2] == "2" and y[4] == "3" and y[6] == "4" and y[8] == "5" and y[10] == "6" and y[12] == "7" and y[14] == "8" and y[16] == "9" and y[18] == "0":
  5.         print(x)
  6.         quit()
Add Comment
Please, Sign In to add comment