Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4c4eaeba4
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (6 sloc) 0.213 kb
# How many distinct terms are in the sequence generated by a ** b for 2 <= a <= 100 and 2 <= b <= 100?
terms = {}
for a in range(2, 101):
for b in range(2, 101):
terms[a ** b] = 1
print len(terms.keys())
Jump to Line
Something went wrong with that request. Please try again.