Added more information about the problem i want to solve and encapsulated isPrime function in primeSum.