Wrote summation & is_prime methods!