Fixed isprime bug
Fixed another isPrime bug