Javascript_basics/Euler problems(1-3)