You are viewing a single comment's thread. Return to all comments →
getting error for this logic after m=15
def sumof (m): sume=0 for b in range(1,10): for n in range(2,m+1): for x in range(1,10): a=b*((10**(n-1))-x)/(10*x-1) if len(str(a).split('.')[0])==(n-1) and float(str(a).split('.')[1])==0: sume+=a*10 + b return int(sume%100000)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #168: Number Rotations
You are viewing a single comment's thread. Return to all comments →
getting error for this logic after m=15