isPrime

Changed sum(map(...)) to reduce(...)