euler: Simplify problem 1

Signed-off-by: Aleksi Pitkäjärvi <aleksi.pitkajarvi@valotrading.com>
euler: Simplify problem 6

Signed-off-by: Aleksi Pitkäjärvi <aleksi.pitkajarvi@valotrading.com>