Project Euler Problem#29
#python program to find the no. of distinct terms are in the a power b sequence
import unittest
def distinct_power(num):
if type(num)!=int or num<2:
return None
list1=[]
for a in range(2,num+1):
for b in range(2,num+1):
...
mycodingjourneyy.hashnode.dev1 min read