Added class for the Summation of primes problem, also added method to check if number is prime