from __future__ import annotations

import math







def     _a				(      lowercase__  :			List[Any] ):







					'''simple docstring'''


					if 1 < number < 4:
										# 2 and 3 are primes
										return True
					elif number < 2 or number % 2 == 0 or number % 3 == 0:
										# Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
										return False

					# All primes number are in format of 6k +/- 1
					for i in range(5     ,  int(math.sqrt(lowerCAmelCase_ ) + 1 )     ,  6 ):
										if number % i == 0 or number % (i + 2) == 0:
															return False
					return True







def     _a				(      lowercase__  :			int ):







					'''simple docstring'''


					SCREAMING_SNAKE_CASE__				:				Dict			=		str(lowerCAmelCase_ )
					SCREAMING_SNAKE_CASE__				:				Dict			=		[n]
					for i in range(1     ,  len(lowerCAmelCase_ ) ):
										list_nums.append(int(str_num[i:] ) )
										list_nums.append(int(str_num[:-i] ) )
					return list_nums







def     _a				(      lowercase__  :			Optional[Any] ):







					'''simple docstring'''


					if len(str(lowerCAmelCase_ ) ) > 3:
										if not is_prime(int(str(lowerCAmelCase_ )[-3:] ) ) or not is_prime(int(str(lowerCAmelCase_ )[:3] ) ):
															return False
					return True







def     _a				(      lowercase__  :			Any = 11 ):







					'''simple docstring'''


					SCREAMING_SNAKE_CASE__				:				list[int]			=		[]
					SCREAMING_SNAKE_CASE__				:				str			=		13
					while len(lowerCAmelCase_ ) != count:
										if validate(lowerCAmelCase_ ):
															SCREAMING_SNAKE_CASE__				:				Dict			=		list_truncated_nums(lowerCAmelCase_ )
															if all(is_prime(lowerCAmelCase_ ) for i in list_nums ):
																				list_truncated_primes.append(lowerCAmelCase_ )
										num += 2
					return list_truncated_primes







def     _a				(      ):







					'''simple docstring'''


					return sum(compute_truncated_primes(11 ) )


if __name__ == "__main__":
						print(F"""{sum(compute_truncated_primes(11)) = }""")




def     _a				(      lowercase__  :			int     ,  lowercase__  :			int ):







     '''simple docstring'''


     return int((input_a, input_a).count(0 ) != 0 )







def     _a				(      ):







     '''simple docstring'''


     assert nand_gate(0     ,  0 ) == 1
     assert nand_gate(0     ,  1 ) == 1
     assert nand_gate(1     ,  0 ) == 1
     assert nand_gate(1     ,  1 ) == 0


if __name__ == "__main__":
      print(nand_gate(0, 0))
      print(nand_gate(0, 1))
      print(nand_gate(1, 0))
      print(nand_gate(1, 1))



