


from __future__ import annotations

import math





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





def   _lowerCAmelCase				(   UpperCamelCase__:     int						) ->   list[int]:





	"""simple docstring"""







	A								=				str(UpperCamelCase__						)
	A								=				[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   _lowerCAmelCase				(   UpperCamelCase__:     int						) ->   bool:





	"""simple docstring"""







	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   _lowerCAmelCase				(   UpperCamelCase__:     int = 11						) ->   list[int]:





	"""simple docstring"""







	A								=				[]
	A								=				13
	while len(UpperCamelCase__						) != count:
		if validate(UpperCamelCase__						):
			A								=				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   _lowerCAmelCase				(   ) ->   int:





	"""simple docstring"""







	return sum(compute_truncated_primes(11						)						)


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







import copy

from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ..auto.configuration_auto import CONFIG_MAPPING


_lowercase       :      int	=	logging.get_logger(__name__)






class       _UpperCamelCase    (					__snake_case				):

				"""simple docstring"""







				lowerCAmelCase 		= 'upernet'

				def __init__(						self				,   a__=None				,   a__=512				,   a__=0.02				,   a__=[1, 2, 3, 6]				,   a__=True				,   a__=0.4				,   a__=384				,   a__=256				,   a__=1				,   a__=False				,   a__=255				,   **a__				,   )	->				Tuple:
					super().__init__(**a__   )

					if backbone_config is None:
						logger.info("""`backbone_config` is `None`. Initializing the config with the default `ResNet` backbone."""   )
						A								=				CONFIG_MAPPING["""resnet"""](out_features=["""stage1""", """stage2""", """stage3""", """stage4"""]   )
					elif isinstance(a__				,   a__   ):
						A								=				backbone_config.get("""model_type"""   )
						A								=				CONFIG_MAPPING[backbone_model_type]
						A								=				config_class.from_dict(a__   )

					A								=				backbone_config
					A								=				hidden_size
					A								=				initializer_range
					A								=				pool_scales
					A								=				use_auxiliary_head
					A								=				auxiliary_loss_weight
					A								=				auxiliary_in_channels
					A								=				auxiliary_channels
					A								=				auxiliary_num_convs
					A								=				auxiliary_concat_input
					A								=				loss_ignore_index

				def      _UpperCAmelCase					(						self   )	->				Dict:
					A								=				copy.deepcopy(self.__dict__   )
					A								=				self.backbone_config.to_dict()
					A								=				self.__class__.model_type
					return output



