
from typing import List

from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCamelCase_   	=	logging.get_logger(__name__)

UpperCamelCase_   	=	{
    "snap-research/efficientformer-l1-300": (
        "https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json"
    ),
}

class       a		(   __UpperCAmelCase					):
							lowercase_		:						List[str]   							=  'efficientformer'







							def __init__(						self  :  str      ,				snake_case__  :  List[int] = [3, 2, 6, 4]      ,				snake_case__  :  List[int] = [48, 96, 224, 448]      ,				snake_case__  :  List[bool] = [True, True, True, True]      ,				snake_case__  :  int = 448      ,				snake_case__  :  int = 32      ,				snake_case__  :  int = 4      ,				snake_case__  :  int = 7      ,				snake_case__  :  int = 5      ,				snake_case__  :  int = 8      ,				snake_case__  :  int = 4      ,				snake_case__  :  float = 0.0      ,				snake_case__  :  int = 16      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 2      ,				snake_case__  :  int = 1      ,				snake_case__  :  float = 0.0      ,				snake_case__  :  int = 1      ,				snake_case__  :  bool = True      ,				snake_case__  :  bool = True      ,				snake_case__  :  float = 1E-5      ,				snake_case__  :  str = "gelu"      ,				snake_case__  :  float = 0.0_2      ,				snake_case__  :  float = 1E-12      ,				snake_case__  :  int = 224      ,				snake_case__  :  float = 1E-05      ,				**snake_case__  :  int      ,				):
								"""simple docstring"""







								super().__init__(**snake_case__ )

								__lowerCAmelCase         =							hidden_act
								__lowerCAmelCase         =							hidden_dropout_prob
								__lowerCAmelCase         =							hidden_sizes
								__lowerCAmelCase         =							num_hidden_layers
								__lowerCAmelCase         =							num_attention_heads
								__lowerCAmelCase         =							initializer_range
								__lowerCAmelCase         =							layer_norm_eps
								__lowerCAmelCase         =							patch_size
								__lowerCAmelCase         =							num_channels
								__lowerCAmelCase         =							depths
								__lowerCAmelCase         =							mlp_expansion_ratio
								__lowerCAmelCase         =							downsamples
								__lowerCAmelCase         =							dim
								__lowerCAmelCase         =							key_dim
								__lowerCAmelCase         =							attention_ratio
								__lowerCAmelCase         =							resolution
								__lowerCAmelCase         =							pool_size
								__lowerCAmelCase         =							downsample_patch_size
								__lowerCAmelCase         =							downsample_stride
								__lowerCAmelCase         =							downsample_pad
								__lowerCAmelCase         =							drop_path_rate
								__lowerCAmelCase         =							num_metaad_blocks
								__lowerCAmelCase         =							distillation
								__lowerCAmelCase         =							use_layer_scale
								__lowerCAmelCase         =							layer_scale_init_value
								__lowerCAmelCase         =							image_size
								__lowerCAmelCase         =							batch_norm_eps








from __future__ import annotations

UpperCamelCase_   	=	[True] * 1_0_0_0_0_0_1
UpperCamelCase_   	=	2
while i * i <= 1_0_0_0_0_0_0:
					if seive[i]:
										for j in range(i * i, 1_0_0_0_0_0_1, i):
															UpperCamelCase_   	=	False
					i += 1






def 		_UpperCAmelCase   (	UpperCamelCase:     int  ):






	"""simple docstring"""


	return seive[n]






def 		_UpperCAmelCase   (	UpperCamelCase:     int  ):






	"""simple docstring"""


	return any(digit in "02468" for digit in str(UpperCamelCase  )  )






def 		_UpperCAmelCase   (	UpperCamelCase:     int = 1_0_0_0_0_0_0  ):






	"""simple docstring"""


	__lowerCAmelCase         =							[2]  # result already includes the number 2.
	for num in range(3			,							limit + 1			,							2  ):
		if is_prime(UpperCamelCase  ) and not contains_an_even_digit(UpperCamelCase  ):
			__lowerCAmelCase         =							str(UpperCamelCase  )
			__lowerCAmelCase         =							[int(str_num[j:] + str_num[:j]  ) for j in range(len(UpperCamelCase  )  )]
			if all(is_prime(UpperCamelCase  ) for i in list_nums  ):
				result.append(UpperCamelCase  )
	return result






def 		_UpperCAmelCase   (	):






	"""simple docstring"""


	return len(find_circular_primes()  )


if __name__ == "__main__":
					print(f'''{len(find_circular_primes()) = }''')






