Euler prob 2 with @phillycc