Skip to content

Instantly share code, notes, and snippets.

@clementi
Created February 16, 2011 02:44
Show Gist options
  • Save clementi/828765 to your computer and use it in GitHub Desktop.
Save clementi/828765 to your computer and use it in GitHub Desktop.
Project Euler Problem #29
import itertools
products = set()
for (a, b) in itertools.product(range(2, 101), range(2, 101)):
products.add(a ** b)
print len(products)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment