Solutions to the problems in project euler