Solutions to project euler problems