euler7 old and new, reused is_prime from euler3