Problem 028

git-svn-id: file:///srv/svn/euler@57 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
Correl Roush 2010-05-03 22:40:23 +00:00
parent fb13b3ce62
commit 3807d9f5bf

14
e028.py Normal file
View file

@ -0,0 +1,14 @@
n = 1
total = 1
size = 1
MAX_SIZE = 1001
while size <= MAX_SIZE:
for i in range(4):
n = n + (size - 1)
if n > 1:
total = total + n
size = size + 2
print 'Total:', total