Euler project 41