Skip to content

Instantly share code, notes, and snippets.

@leotrs
Last active July 19, 2016 22:32
Show Gist options
  • Save leotrs/2529cb3a5571684ab293ea8afede56e7 to your computer and use it in GitHub Desktop.
Save leotrs/2529cb3a5571684ab293ea8afede56e7 to your computer and use it in GitHub Desktop.
dojo 19/7/16
from itertools import product
print(next(p for p in reversed(sorted(i*j for i,j in product(range(100,999),range(100,999)))) if list(str(p))==list(reversed(str(p)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment