human
Check if a number is prime in Flipped Upside Down , Mirror Flipped and Mirror Flipped Upside Down | Function to check if N contains digits 0 , 1 , 2 , 5 , 8 only.
Extract digits of N.
Return false if any of these digits are present.
Function to check if N is prime or not.
Check for all factors.
Function to check if n is prime in all the desired forms.
Driver Code"
Solution in Python:

=====
Give me a code to check if a number is prime in Flipped Upside Down , Mirror Flipped and Mirror Flipped Upside Down and the other steps required?
assistant
#Here is code to check if a number is prime in Flipped Upside Down , Mirror Flipped and Mirror Flipped Upside Down and the other steps required.
 def checkDigits ( n ) :
	while True :
		r = n % 10
		if ( r == 3 or r == 4 or r == 6 or r == 7 or r == 9 ) :
			return False
		n //= 10
		if n == 0 :
			break
	return True
def isPrime ( n ) :
	if ( n <= 1 ) :
		return False
	for i in range ( 2 , n + 1 ) :
		if i * i > n :
			break
		if ( n % i == 0 ) :
			return False
	return True
def isAllPrime ( n ) :
	return isPrime ( n ) and checkDigits ( n )
if __name__ == ' _ _ main _ _ ' :
	N = 101
	if ( isAllPrime ( N ) ) :
		print ( " Yes " )
	else :
		print ( " No " )