Euler project 3