Skip to content

Instantly share code, notes, and snippets.

@ekiro
Created December 13, 2016 22:21
Show Gist options
  • Save ekiro/613158de8643ca4eef3416cddf675e08 to your computer and use it in GitHub Desktop.
Save ekiro/613158de8643ca4eef3416cddf675e08 to your computer and use it in GitHub Desktop.
from itertools import product
print(max(number for number in (n*m for n, m in product(range(100, 1000), range(100, 1000))) if str(number) == str(number)[::-1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment