
from __future__ import annotations

import math


def 							__A(lowerCAmelCase )		->				Any:

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


def 							__A(lowerCAmelCase )		->				Dict:

		"""simple docstring"""






		_UpperCamelCase						    =	str(__snake_case )
		_UpperCamelCase						    =	[n]
		for i in range(1						,  len(__snake_case ) ):
				list_nums.append(int(str_num[i:] ) )
				list_nums.append(int(str_num[:-i] ) )
		return list_nums


def 							__A(lowerCAmelCase )		->				Dict:

		"""simple docstring"""






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


def 							__A(lowerCAmelCase = 1_1 )		->				str:

		"""simple docstring"""






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


def 							__A()		->				Union[str, Any]:

		"""simple docstring"""






		return sum(compute_truncated_primes(1_1 ) )


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





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowerCamelCase__	=							{"configuration_yolos": ["YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP", "YolosConfig", "YolosOnnxConfig"]}

try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowerCamelCase__	=							["YolosFeatureExtractor"]
		lowerCamelCase__	=							["YolosImageProcessor"]

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowerCamelCase__	=							[
		    "YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "YolosForObjectDetection",
		    "YolosModel",
		    "YolosPreTrainedModel",
		]


if TYPE_CHECKING:
		from .configuration_yolos import YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP, YolosConfig, YolosOnnxConfig

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .feature_extraction_yolos import YolosFeatureExtractor
				from .image_processing_yolos import YolosImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_yolos import (
				    YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST,
				    YolosForObjectDetection,
				    YolosModel,
				    YolosPreTrainedModel,
				)


else:
		import sys

		lowerCamelCase__	=							_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



