Solutions to project euler