Project Euler problem zero
= Project Euler problem zero
{c}
= Project Euler problem 0
{synonym}
{title2}
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: \a[euler/0.py]