Project euler problem solutions.