Abstract and simplify problem 3

This code still does not execute. I need to rework how I find primes. I
think using a sieve method, or calling a function to find a prime on a
single integer inside a loop that runs through my array of factors is a
good approach. Right now, the loops in findPrimes are broken. Will
revisit.