


from __future__ import annotations

from collections.abc import Generator

def 						_UpperCAmelCase				(			):
     __UpperCamelCase    							={}
     __UpperCamelCase    							=2
     while True:
          __UpperCamelCase    							=factor_map.pop(SCREAMING_SNAKE_CASE__			,     SCREAMING_SNAKE_CASE__				)
          if factor:
               __UpperCamelCase    							=factor + prime
               while x in factor_map:
                    x += factor
               __UpperCamelCase    							=factor
          else:
               __UpperCamelCase    							=prime
               yield prime
          prime += 1

def 						_UpperCAmelCase				(			SCREAMING_SNAKE_CASE__			:					float = 1E10				):
     __UpperCamelCase    							=sieve()

     __UpperCamelCase    							=1
     while True:
          __UpperCamelCase    							=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

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_A		       =						{
    'configuration_jukebox': [
        'JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'JukeboxConfig',
        'JukeboxPriorConfig',
        'JukeboxVQVAEConfig',
    ],
    'tokenization_jukebox': ['JukeboxTokenizer'],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _A		       =						[
       'JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST',
       'JukeboxModel',
       'JukeboxPreTrainedModel',
       'JukeboxVQVAE',
       'JukeboxPrior',
   ]

if TYPE_CHECKING:
   from .configuration_jukebox import (
       JUKEBOX_PRETRAINED_CONFIG_ARCHIVE_MAP,
       JukeboxConfig,
       JukeboxPriorConfig,
       JukeboxVQVAEConfig,
   )
   from .tokenization_jukebox import JukeboxTokenizer

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_jukebox import (
          JUKEBOX_PRETRAINED_MODEL_ARCHIVE_LIST,
          JukeboxModel,
          JukeboxPreTrainedModel,
          JukeboxPrior,
          JukeboxVQVAE,
      )

else:
   import sys

   _A		       =						_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





