to judge a prime number