fixed bug in isPrime (even numbers except 2 are not prime, duh)