passing test for euler no. 1