Euler project 7