to check for prime number