passing test for euler1 using code by johnbendi