mirror of
https://github.com/correl/euler.git
synced 2024-11-30 11:09:52 +00:00
14 lines
208 B
Python
14 lines
208 B
Python
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
|