project euler solutions in js.