Haskell: Update Primes to use isFactorOf