Skip to content

Instantly share code, notes, and snippets.

@matinkaboli
Created June 30, 2018 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matinkaboli/97348abb075caec84e0ef317d650d196 to your computer and use it in GitHub Desktop.
Save matinkaboli/97348abb075caec84e0ef317d650d196 to your computer and use it in GitHub Desktop.
combinations = []
for i in range(2, 101):
for j in range(2, 101):
p = i ** j
if p not in combinations:
combinations.append(p)
print(len(combinations))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment