Skip to content

Instantly share code, notes, and snippets.

@ekiro
Created December 13, 2016 22:30
Show Gist options
  • Save ekiro/68ecf4ad1a93ff1606cafc6e75a75070 to your computer and use it in GitHub Desktop.
Save ekiro/68ecf4ad1a93ff1606cafc6e75a75070 to your computer and use it in GitHub Desktop.
max_pal = 0
for x in range(100, 1000):
for y in range(x, 1000):
number = x * y
if number > max_pal:
numStr = str(number)
if numStr == numStr[::-1]:
max_pal = number
print(max_pal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment