Solution to questions in Project Euler