Solutions to Project Euler exercises