finishing project Euler from thursday class 4/4