'''simple docstring'''







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 _SCREAMING_SNAKE_CASE(							_SCREAMING_SNAKE_CASE					):
						A_			:							List[Any]     		= 'efficientformer'




						def __init__(    self :       int							,							UpperCamelCase_ :       Union[str, Any] = [3, 2, 6, 4]							,							UpperCamelCase_ :       List[Any] = [48, 96, 2_24, 4_48]							,							UpperCamelCase_ :       List[str] = [True, True, True, True]							,							UpperCamelCase_ :       Any = 4_48							,							UpperCamelCase_ :       int = 32							,							UpperCamelCase_ :       Optional[int] = 4							,							UpperCamelCase_ :       str = 7							,							UpperCamelCase_ :       List[Any] = 5							,							UpperCamelCase_ :       Dict = 8							,							UpperCamelCase_ :       Optional[int] = 4							,							UpperCamelCase_ :       int = 0.0							,							UpperCamelCase_ :       Union[str, Any] = 16							,							UpperCamelCase_ :       Union[str, Any] = 3							,							UpperCamelCase_ :       Dict = 3							,							UpperCamelCase_ :       Optional[Any] = 3							,							UpperCamelCase_ :       Dict = 2							,							UpperCamelCase_ :       List[str] = 1							,							UpperCamelCase_ :       Union[str, Any] = 0.0							,							UpperCamelCase_ :       List[str] = 1							,							UpperCamelCase_ :       Dict = True							,							UpperCamelCase_ :       Any = True							,							UpperCamelCase_ :       Any = 1e-5							,							UpperCamelCase_ :       Optional[Any] = "gelu"							,							UpperCamelCase_ :       List[str] = 0.02							,							UpperCamelCase_ :       Union[str, Any] = 1e-12							,							UpperCamelCase_ :       Any = 2_24							,							UpperCamelCase_ :       Any = 1e-05							,							**UpperCamelCase_ :       Dict							,							)     ->				Union[str, Any]:
													super().__init__(**__lowerCAmelCase      )

													SCREAMING_SNAKE_CASE__     :Union[str, Any]						    = hidden_act
													SCREAMING_SNAKE_CASE__     :int						    = hidden_dropout_prob
													SCREAMING_SNAKE_CASE__     :List[Any]						    = hidden_sizes
													SCREAMING_SNAKE_CASE__     :Optional[Any]						    = num_hidden_layers
													SCREAMING_SNAKE_CASE__     :str						    = num_attention_heads
													SCREAMING_SNAKE_CASE__     :int						    = initializer_range
													SCREAMING_SNAKE_CASE__     :Optional[Any]						    = layer_norm_eps
													SCREAMING_SNAKE_CASE__     :Optional[Any]						    = patch_size
													SCREAMING_SNAKE_CASE__     :int						    = num_channels
													SCREAMING_SNAKE_CASE__     :Optional[int]						    = depths
													SCREAMING_SNAKE_CASE__     :List[Any]						    = mlp_expansion_ratio
													SCREAMING_SNAKE_CASE__     :int						    = downsamples
													SCREAMING_SNAKE_CASE__     :Dict						    = dim
													SCREAMING_SNAKE_CASE__     :List[Any]						    = key_dim
													SCREAMING_SNAKE_CASE__     :List[Any]						    = attention_ratio
													SCREAMING_SNAKE_CASE__     :str						    = resolution
													SCREAMING_SNAKE_CASE__     :Optional[int]						    = pool_size
													SCREAMING_SNAKE_CASE__     :List[Any]						    = downsample_patch_size
													SCREAMING_SNAKE_CASE__     :int						    = downsample_stride
													SCREAMING_SNAKE_CASE__     :Any						    = downsample_pad
													SCREAMING_SNAKE_CASE__     :Optional[Any]						    = drop_path_rate
													SCREAMING_SNAKE_CASE__     :List[str]						    = num_metaad_blocks
													SCREAMING_SNAKE_CASE__     :Any						    = distillation
													SCREAMING_SNAKE_CASE__     :Tuple						    = use_layer_scale
													SCREAMING_SNAKE_CASE__     :Dict						    = layer_scale_init_value
													SCREAMING_SNAKE_CASE__     :List[Any]						    = image_size
													SCREAMING_SNAKE_CASE__     :Optional[Any]						    = batch_norm_eps














import math
from collections.abc import Iterator
from itertools import takewhile

def   __lowercase       (			snake_case			):







				"""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   __lowercase       (			):







				"""simple docstring"""






				__magic_name__		:str   =   2
				while True:
								if is_prime(snake_case			):
												yield num
								num += 1

def   __lowercase       (			snake_case = 2_0_0_0_0_0_0			):







				"""simple docstring"""






				return sum(takewhile(lambda snake_case			: x < n,	prime_generator()			)			)


if __name__ == "__main__":
					print(f"{solution() = }")






