Return to Snippet

Revision: 27080
at May 21, 2010 10:47 by chroto


Initial Code
#!/usr/bin/python

# Project Euler - Problem 16

print "\nProject Euler - Problem 16"
print " What is the sum of the digits of 2^1000?\n"

num = 2**1000
sum = 0
str = str(num)

for x in str:
    sum += int(x)

print sum

Initial URL

                                

Initial Description

                                

Initial Title
Project Euler - Problem 16

Initial Tags

                                

Initial Language
Python