solutions for project euler problems. contains spoilers.