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