My solution to problem 1 on project euler

javascript solution