euler: Simplify problem 25

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