Project Euler problem zero

ID: project-euler-problem-zero

Project Euler problem zero by Ciro Santilli 40 Created 2025-10-14 Updated 2026-04-25
This was a registration CAPTCHA problem as of 2025:
Among the first 510 thousand square numbers, what is the sum of all the odd squares?
Bash + Python "one-liner":
python -c $'import sys;max=int(sys.argv[1]) + 1;s = 0\nfor i in range(1, max, 2):\n s += i*i\nprint(s)' 510000
With indentation:
s = 0
for i in range(1, 510001, 2):
    s += i*i
print(s)
As a file at: euler/0.py

New to topics? Read the docs here!