






'''simple docstring'''





from __future__ import annotations


def 					UpperCamelCase_(     snake_case							:	List[Any]					):

							'''simple docstring'''






							snake_case_      =				[True] * limit
							snake_case_      =				False
							snake_case_      =				False
							snake_case_      =				True

							for i in range(3							,    int(limit**0.5 + 1					)							,    2					):
														snake_case_      =				i * 2
														while index < limit:
																					snake_case_      =				False
																					snake_case_      =				index + i

							snake_case_      =				[2]

							for i in range(3							,    _lowerCamelCase							,    2					):
														if is_prime[i]:
																					primes.append(_lowerCamelCase					)

							return primes


def 					UpperCamelCase_(     snake_case							:	Tuple = 1_0_0_0_0_0_0					):

							'''simple docstring'''






							snake_case_      =				prime_sieve(_lowerCamelCase					)
							snake_case_      =				0
							snake_case_      =				0

							for i in range(len(_lowerCamelCase					)					):
														for j in range(i + length							,    len(_lowerCamelCase					)					):
																					snake_case_      =				sum(primes[i:j]					)
																					if sol >= ceiling:
																												break

																					if sol in primes:
																												snake_case_      =				j - i
																												snake_case_      =				sol

							return largest


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










'''simple docstring'''





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


_SCREAMING_SNAKE_CASE							:       List[Any]						=			logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE							:       Optional[int]						=			{
    "edbeeching/decision-transformer-gym-hopper-medium": (
        "https://huggingface.co/edbeeching/decision-transformer-gym-hopper-medium/resolve/main/config.json"
    ),
    # See all DecisionTransformer models at https://huggingface.co/models?filter=decision_transformer
}




class 			_snake_case		(     lowercase_							):
			lowerCAmelCase_					:				Dict							=   "decision_transformer"
			lowerCAmelCase_					:				List[Any]							=   ["past_key_values"]
			lowerCAmelCase_					:				Tuple							=   {
			    "max_position_embeddings": "n_positions",
			    "num_attention_heads": "n_head",
			    "num_hidden_layers": "n_layer",
			}




			def __init__( self    ,							a__=17    ,							a__=4    ,							a__=128    ,							a__=4_096    ,							a__=True    ,							a__=1    ,							a__=1_024    ,							a__=3    ,							a__=1    ,							a__=None    ,							a__="relu"    ,							a__=0.1    ,							a__=0.1    ,							a__=0.1    ,							a__=1e-5    ,							a__=0.0_2    ,							a__=True    ,							a__=True    ,							a__=50_256    ,							a__=50_256    ,							a__=False    ,							a__=False    ,							**a__    ,							)    ->    Optional[int]:

										'''simple docstring'''




										snake_case_      =				state_dim
										snake_case_      =				act_dim
										snake_case_      =				hidden_size
										snake_case_      =				max_ep_len
										snake_case_      =				action_tanh
										snake_case_      =				vocab_size
										snake_case_      =				n_positions
										snake_case_      =				n_layer
										snake_case_      =				n_head
										snake_case_      =				n_inner
										snake_case_      =				activation_function
										snake_case_      =				resid_pdrop
										snake_case_      =				embd_pdrop
										snake_case_      =				attn_pdrop
										snake_case_      =				layer_norm_epsilon
										snake_case_      =				initializer_range
										snake_case_      =				scale_attn_weights
										snake_case_      =				use_cache
										snake_case_      =				scale_attn_by_inverse_layer_idx
										snake_case_      =				reorder_and_upcast_attn

										snake_case_      =				bos_token_id
										snake_case_      =				eos_token_id

										super().__init__(bos_token_id=a__    ,							eos_token_id=a__    ,							**a__							)




