Distinct Powers#

print (len(set(a ** b for a in range(2, 101) for b in range(2, 101))))

OUTPUT

9183