

"""simple docstring"""




snake_case_        =			'''Input must be a string of 8 numbers plus letter'''
snake_case_        =			'''TRWAGMYFPDXBNJZSQVHLCKE'''

def      snake_case__      (   SCREAMING_SNAKE_CASE_		:   str      ):



     '''simple docstring'''





     if not isinstance(SCREAMING_SNAKE_CASE_     ,					SCREAMING_SNAKE_CASE_      ):
          lowercase__   :       Union[str, Any]				=	f"""Expected string as input, found {type(SCREAMING_SNAKE_CASE_      ).__name__}"""
          raise TypeError(SCREAMING_SNAKE_CASE_      )

     lowercase__   :       Tuple				=	spanish_id.replace('-'     ,					''      ).upper()
     if len(SCREAMING_SNAKE_CASE_      ) != 9:
          raise ValueError(SCREAMING_SNAKE_CASE_      )

     try:
          lowercase__   :       Optional[int]				=	int(spanish_id_clean[0:8]      )
          lowercase__   :       Union[str, Any]				=	spanish_id_clean[8]
     except ValueError as ex:
          raise ValueError(SCREAMING_SNAKE_CASE_      ) from ex

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

     return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
       import doctest

       doctest.testmod()




from __future__ import annotations

import math

def      snake_case__      (   SCREAMING_SNAKE_CASE_		:   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(SCREAMING_SNAKE_CASE_      ) + 1      )     ,					6      ):
          if number % i == 0 or number % (i + 2) == 0:
               return False
     return True

def      snake_case__      (   SCREAMING_SNAKE_CASE_		:   int      ):



     '''simple docstring'''





     lowercase__   :       int				=	str(SCREAMING_SNAKE_CASE_      )
     lowercase__   :       Union[str, Any]				=	[n]
     for i in range(1     ,					len(SCREAMING_SNAKE_CASE_      )      ):
          list_nums.append(int(str_num[i:]      )      )
          list_nums.append(int(str_num[:-i]      )      )
     return list_nums

def      snake_case__      (   SCREAMING_SNAKE_CASE_		:   int      ):



     '''simple docstring'''





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

def      snake_case__      (   SCREAMING_SNAKE_CASE_		:   int = 11      ):



     '''simple docstring'''





     lowercase__   :       list[int]				=	[]
     lowercase__   :       Tuple				=	13
     while len(SCREAMING_SNAKE_CASE_      ) != count:
          if validate(SCREAMING_SNAKE_CASE_      ):
               lowercase__   :       Optional[int]				=	list_truncated_nums(SCREAMING_SNAKE_CASE_      )
               if all(is_prime(SCREAMING_SNAKE_CASE_      ) for i in list_nums      ):
                    list_truncated_primes.append(SCREAMING_SNAKE_CASE_      )
          num += 2
     return list_truncated_primes

def      snake_case__      (   ):



     '''simple docstring'''





     return sum(compute_truncated_primes(11      )      )


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

