code used to solve questions on Project Euler