Project euler related code