Solutions to the first two problems on Project Euler