PCPOTATO
Navigation

Home
About
Contact
Resume

Projects

None yet

Categories

General
Interesting
Programming

Archives

August 2008
July 2008
June 2008
May 2008
April 2008
Project Euler #16 July 14th, 2008

What is the sum of the digits of the number 21000?

1
2
3
4
5
number = str(2**1000)
sum = 0
for d in number:
    sum = sum + int(d)
print sum
Leave a Reply

You must be logged in to post a comment.

Domains


Links


Presence


Meta

Log in