test for prime number