project Euler solutions 6-10