Workings & Source for Project Euler solutions
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
223 B

import math
answer=0
seto=set()
for i in range(2,10):
work=1
while work<=199:
if math.log(math.pow(i,work),10)//1==work-1:
seto.add(math.pow(i,work))
print(math.pow(i,work))
work+=1
print("Answer:",len(seto))