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 #13 July 14th, 2008

Work out the first ten digits of the sum of the one-hundred 50-digit numbers.

1
2
3
4
5
6
7
f = open('Problem 13 numbers.txt', 'r')
numbers = f.readlines()
 
sum = 0
for num in numbers:
    sum = sum + int(num)
print sum
Leave a Reply

You must be logged in to post a comment.

Domains


Links


Presence


Meta

Log in