OurBigBook About$ Donate
 Sign in Sign up

Project Euler problem zero (Project Euler problem 0)

Ciro Santilli (@cirosantilli,  40) ... Competitive programming Competitive programming website Project Euler Project Euler problem Main Project Euler problem Bonus Project Euler problem
Created 2025-10-14 Updated 2026-04-25  0 By others on same topic  0 Discussions Create my own version
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

 Ancestors (14)

  1. Bonus Project Euler problem
  2. Main Project Euler problem
  3. Project Euler problem
  4. Project Euler
  5. Competitive programming website
  6. Competitive programming
  7. Knowledge olympiad by domain of knowledge
  8. Knowledge olympiad
  9. STEM prize
  10. Prize
  11. Social technology
  12. Area of technology
  13. Technology
  14.  Home

 Synonyms (1)

  • cirosantilli/project-euler-problem-0

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook