Project Euler problem solutions.