# Euler 30. Digit fifth powers

result=0
for i in range(2,1000000):
	sum=0
	for j in str(i):
		sum=sum+int(j)**5
	if sum==i:
		result+=i

print(result)
3c35e289d052336c88538be8406b492745800bf4
<mask token>

<mask token>
for i in range(2, 1000000):
    sum = 0
    for j in str(i):
        sum = sum + int(j) ** 5
    if sum == i:
        result += i
print(result)

result = 0
for i in range(2, 1000000):
    sum = 0
    for j in str(i):
        sum = sum + int(j) ** 5
    if sum == i:
        result += i
print(result)

# Euler 30. Digit fifth powers

result=0
for i in range(2,1000000):
	sum=0
	for j in str(i):
		sum=sum+int(j)**5
	if sum==i:
		result+=i

print(result)