


'''simple docstring'''

import itertools
import math





def lowerCamelCase      (      lowerCAmelCase    :     int		):





	"""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 lowerCamelCase      (      ):





	"""simple docstring"""







	__magic_name__	:   Optional[int]					     =					2
	while True:
		if is_prime(lowerCAmelCase		):
			yield num
		num += 1





def lowerCamelCase      (      lowerCAmelCase    :     int = 1_0001		):





	"""simple docstring"""







	return next(itertools.islice(prime_generator()		,		nth - 1		,		lowerCAmelCase		)		)


if __name__ == "__main__":
							print(F'{solution() = }')



'''simple docstring'''

def lowerCamelCase      (      lowerCAmelCase    :     int		):





	"""simple docstring"""







	if not isinstance(lowerCAmelCase		,		lowerCAmelCase		):
		__magic_name__	:   int					     =					f'Input value of [number={number}] must be an integer'
		raise TypeError(lowerCAmelCase		)
	if number < 0:
		return False
	__magic_name__	:   Tuple					     =					number * number
	while number > 0:
		if number % 10 != number_square % 10:
			return False
		number //= 10
		number_square //= 10
	return True


if __name__ == "__main__":
							import doctest

							doctest.testmod()