You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
195 B

import itertools
set_list = set()
permutation_list = list(itertools.product(range(2, 101), range(2, 101)))
for i in permutation_list:
set_list.add(pow(i[0], i[1]))
print(len(set_list))