You are viewing a single comment's thread. Return to all comments →
can anybody help me? what's wrong with the code
n = int(input()) l = [] for i in range(2, n+1): for j in range(2,n+1): l.append(i**j) print(len(list(dict.fromkeys(l))))
Project Euler #29: Distinct powers
You are viewing a single comment's thread. Return to all comments →
can anybody help me? what's wrong with the code