'''simple docstring'''

from __future__ import annotations

import math
def       __UpperCamelCase	(       UpperCAmelCase					):

 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(UpperCAmelCase					) + 1					)		,					6					):
  if number % i == 0 or number % (i + 2) == 0:
   return False
 return True
def       __UpperCamelCase	(       UpperCAmelCase					):
 lowercase__    :   Optional[Any]						= str(UpperCAmelCase					)
 lowercase__    :   Union[str, Any]						= [n]
 for i in range(1		,					len(UpperCAmelCase					)					):
  list_nums.append(int(str_num[i:]					)					)
  list_nums.append(int(str_num[:-i]					)					)
 return list_nums
def       __UpperCamelCase	(       UpperCAmelCase					):
 if len(str(UpperCAmelCase					)					) > 3:
  if not is_prime(int(str(UpperCAmelCase					)[-3:]					)					) or not is_prime(int(str(UpperCAmelCase					)[:3]					)					):
   return False
 return True
def       __UpperCamelCase	(       UpperCAmelCase = 11					):
 lowercase__    :   list[int]						= []
 lowercase__    :   int						= 13
 while len(UpperCAmelCase					) != count:
  if validate(UpperCAmelCase					):
   lowercase__    :   Union[str, Any]						= list_truncated_nums(UpperCAmelCase					)
   if all(is_prime(UpperCAmelCase					) for i in list_nums					):
    list_truncated_primes.append(UpperCAmelCase					)
  num += 2
 return list_truncated_primes
def       __UpperCamelCase	(       ):
 return sum(compute_truncated_primes(11					)					)


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


'''simple docstring'''

import re

from filelock import FileLock


try:
  import nltk

  __a:			Tuple	       =       True
except (ImportError, ModuleNotFoundError):
  __a:			List[Any]	       =       False

if NLTK_AVAILABLE:
  with FileLock(""".lock""") as lock:
    nltk.download("""punkt""", quiet=True)
def       __UpperCamelCase	(       UpperCAmelCase					):
 re.sub('''<n>'''		,					''''''		,					UpperCAmelCase					)  # remove pegasus newline char
 assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
 return "\n".join(nltk.sent_tokenize(UpperCAmelCase					)					)

