Euler project 139