Error in primality checker.