🚨
Spoiler alert: This post contains spoilers for Project Euler.
Background
Project Euler is website that offers challenging math problems that need to be solved programmatically. Their about section will do a better job explaining than I can: Project Euler
Registering
Registration requires solving problem 0.
Problem 0

Sum of squares for all odd numbers [1; 123,000]
JS Solution
For simpler problems (like this one), I will just post the solution without too much explanation. You can modify the code below as you like. The timeout is also configurable.