def mk_uniqe(limit): s = set() for i in range(2, limit + 1): for j in range(2, limit + 1): s.add(i ** j) return s print(len(mk_uniqe(100)))