solutions for project euler. spoilers ahead.