euler1.js solution w/ console.log