Problem for project Euler