Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def rakamlarina_ayir(sayi):
- return [int(i) for i in str(sayi)]
- def islem(sayi,üs=5):
- toplam=0
- for i in rakamlarina_ayir(sayi):
- toplam+=i**üs
- return toplam
- sonuclar=[]
- for i in range(2,1000000):
- if islem(i)==i:
- sonuclar.append(i)
- print(sum(sonuclar))
Add Comment
Please, Sign In to add comment