euler: Simplify problem 48

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