Refactoring Summation of Primes

Updated the maxRoot to determine per max prime found.