code for questions in project euler