Better euler3 code

A more correct solution