Initial commit

This commit is contained in:
2020-06-21 23:53:32 +02:00
commit 7ca64a7a82
67 changed files with 1698 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
def squareOfDigits(n):
n=str(n)
return sum([int(n[i])**2 for i in range(0, len(n))])
result=0
for i in range(1, 10000000):
if i%100000==0:
print(str(i/100000) + "%")
while True:
i=squareOfDigits(i)
if i==1:
break
elif i==89:
result+=1
break
print(result)