






'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


__snake_case											=					logging.get_logger(__name__)

__snake_case											=					{
    '''alibaba-damo/mgp-str-base''': '''https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json''',
}
class        lowercase     (							A__ ):

		"""simple docstring"""

		_a   			=    'mgp-str'




		def __init__(		self   ,       UpperCamelCase_=[32, 128]   ,       UpperCamelCase_=4   ,       UpperCamelCase_=3   ,       UpperCamelCase_=27   ,       UpperCamelCase_=38   ,       UpperCamelCase_=50257   ,       UpperCamelCase_=30522   ,       UpperCamelCase_=768   ,       UpperCamelCase_=12   ,       UpperCamelCase_=12   ,       UpperCamelCase_=4.0   ,       UpperCamelCase_=True   ,       UpperCamelCase_=False   ,       UpperCamelCase_=1e-5   ,       UpperCamelCase_=0.0   ,       UpperCamelCase_=0.0   ,       UpperCamelCase_=0.0   ,       UpperCamelCase_=False   ,       UpperCamelCase_=0.02   ,       **UpperCamelCase_   ,       ):

							'''simple docstring'''


							super().__init__(**UpperCamelCase_							)

							UpperCamelCase__       :Dict							 =			image_size
							UpperCamelCase__       :Union[str, Any]							 =			patch_size
							UpperCamelCase__       :List[str]							 =			num_channels
							UpperCamelCase__       :Tuple							 =			max_token_length
							UpperCamelCase__       :List[Any]							 =			num_character_labels
							UpperCamelCase__       :Union[str, Any]							 =			num_bpe_labels
							UpperCamelCase__       :Union[str, Any]							 =			num_wordpiece_labels
							UpperCamelCase__       :Dict							 =			hidden_size
							UpperCamelCase__       :Optional[Any]							 =			num_hidden_layers
							UpperCamelCase__       :Any							 =			num_attention_heads
							UpperCamelCase__       :Union[str, Any]							 =			mlp_ratio
							UpperCamelCase__       :Union[str, Any]							 =			distilled
							UpperCamelCase__       :Union[str, Any]							 =			layer_norm_eps
							UpperCamelCase__       :Optional[Any]							 =			drop_rate
							UpperCamelCase__       :str							 =			qkv_bias
							UpperCamelCase__       :Optional[int]							 =			attn_drop_rate
							UpperCamelCase__       :Union[str, Any]							 =			drop_path_rate
							UpperCamelCase__       :Tuple							 =			output_aa_attentions
							UpperCamelCase__       :Any							 =			initializer_range



'''simple docstring'''
from __future__ import annotations

import math


def       a				(      __a       )  ->     bool:



					'''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       a				(      __a       )  ->     list[int]:



					'''simple docstring'''






					UpperCamelCase__       :List[Any]							 =			str(__a       )
					UpperCamelCase__       :Dict							 =			[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       a				(      __a       )  ->     bool:



					'''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       a				(      __a = 11       )  ->     list[int]:



					'''simple docstring'''






					UpperCamelCase__       :list[int]							 =			[]
					UpperCamelCase__       :int							 =			13
					while len(__a       ) != count:
										if validate(__a       ):
															UpperCamelCase__       :Optional[int]							 =			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       a				(      )  ->     int:



					'''simple docstring'''






					return sum(compute_truncated_primes(11       )       )


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