




"""simple docstring"""





A				=							"""Input must be a string of 8 numbers plus letter"""
A				=							"""TRWAGMYFPDXBNJZSQVHLCKE"""

def        _UpperCamelCase     (      UpperCamelCase				)      ->      bool:


			"""simple docstring"""

			if not isinstance(UpperCamelCase					,							UpperCamelCase				):
						__UpperCAmelCase						:			List[Any]												=       f"Expected string as input, found {type(UpperCamelCase				).__name__}"
						raise TypeError(UpperCamelCase				)

			__UpperCAmelCase						:			Union[str, Any]												=       spanish_id.replace("-"					,							""				).upper()
			if len(UpperCamelCase				) != 9:
						raise ValueError(UpperCamelCase				)

			try:
						__UpperCAmelCase						:			int												=       int(spanish_id_clean[0:8]				)
						__UpperCAmelCase						:			Optional[Any]												=       spanish_id_clean[8]
			except ValueError as ex:
						raise ValueError(UpperCamelCase				) from ex

			if letter.isdigit():
						raise ValueError(UpperCamelCase				)

			return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
					import doctest

					doctest.testmod()










def     a     (		lowerCamelCase_							):






				'''simple docstring'''

				if p < 2:
								raise ValueError('''p should not be less than 2!'''							)
				elif p == 2:
								return True

				lowercase__  					=     4
				lowercase__  					=     (1 << p) - 1
				for _ in range(p - 2							):
								lowercase__  					=     ((s * s) - 2) % m
				return s == 0


if __name__ == "__main__":
							print(lucas_lehmer_test(7))
							print(lucas_lehmer_test(11))




