from __future__ import annotations

import math





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





def       lowerCAmelCase					(		UpperCamelCase__				:   int       ):


	"""simple docstring"""
	__UpperCAmelCase							=			str(A__       )
	__UpperCAmelCase							=			[n]
	for i in range(1    ,					len(A__       )       ):
		list_nums.append(int(str_num[i:]       )       )
		list_nums.append(int(str_num[:-i]       )       )
	return list_nums





def       lowerCAmelCase					(		UpperCamelCase__				:   int       ):


	"""simple docstring"""



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





def       lowerCAmelCase					(		UpperCamelCase__				:   int = 1_1       ):


	"""simple docstring"""
	__UpperCAmelCase							=			[]
	__UpperCAmelCase							=			1_3
	while len(A__       ) != count:
		if validate(A__       ):
			__UpperCAmelCase							=			list_truncated_nums(A__       )
			if all(is_prime(A__       ) for i in list_nums       ):
				list_truncated_primes.append(A__       )
		num += 2
	return list_truncated_primes





def       lowerCAmelCase					(		):


	"""simple docstring"""
	return sum(compute_truncated_primes(1_1       )       )


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

'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
)


__lowerCAmelCase	:       Optional[Any]						       =	{
    "configuration_llama": ["LLAMA_PRETRAINED_CONFIG_ARCHIVE_MAP", "LlamaConfig"],
}

try:
					if not is_sentencepiece_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					__lowerCAmelCase	:       str						       =	["LlamaTokenizer"]

try:
					if not is_tokenizers_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					__lowerCAmelCase	:       str						       =	["LlamaTokenizerFast"]

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					__lowerCAmelCase	:       Union[str, Any]						       =	[
					    "LlamaForCausalLM",
					    "LlamaModel",
					    "LlamaPreTrainedModel",
					    "LlamaForSequenceClassification",
					]


if TYPE_CHECKING:
					from .configuration_llama import LLAMA_PRETRAINED_CONFIG_ARCHIVE_MAP, LlamaConfig

					try:
										if not is_sentencepiece_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_llama import LlamaTokenizer

					try:
										if not is_tokenizers_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_llama_fast import LlamaTokenizerFast

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_llama import LlamaForCausalLM, LlamaForSequenceClassification, LlamaModel, LlamaPreTrainedModel


else:
					import sys

					__lowerCAmelCase	:       Optional[Any]						       =	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
