


from __future__ import annotations

from collections.abc import Generator
def      _a					( ):


		"""simple docstring"""




		lowercase__				= {}
		lowercase__				= 2
		while True:
				lowercase__				= factor_map.pop(SCREAMING_SNAKE_CASE		,							SCREAMING_SNAKE_CASE	)
				if factor:
						lowercase__				= factor + prime
						while x in factor_map:
								x += factor
						lowercase__				= factor
				else:
						lowercase__				= prime
						yield prime
				prime += 1
def      _a					( SCREAMING_SNAKE_CASE = 1E10	):


		"""simple docstring"""




		lowercase__				= sieve()

		lowercase__				= 1
		while True:
				lowercase__				= next(SCREAMING_SNAKE_CASE	)
				if (2 * prime * n) > limit:
						return n
				# Ignore the next prime as the reminder will be 2.
				next(SCREAMING_SNAKE_CASE	)
				n += 2


if __name__ == "__main__":
			print(solution())





from typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase_							:					int		 =   {
    '''configuration_informer''': [
        '''INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''InformerConfig''',
    ],
}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			UpperCAmelCase_							:					List[str]		 =   [
			    '''INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''InformerForPrediction''',
			    '''InformerModel''',
			    '''InformerPreTrainedModel''',
			]


if TYPE_CHECKING:
			from .configuration_informer import INFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, InformerConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_informer import (
						    INFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
						    InformerForPrediction,
						    InformerModel,
						    InformerPreTrainedModel,
						)

else:
			import sys

			UpperCAmelCase_							:					Optional[int]		 =   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





