





from __future__ import annotations

from collections.abc import Generator


def     SCREAMING_SNAKE_CASE			(      ):

       '''simple docstring'''





       _UpperCamelCase              =						{}
       _UpperCamelCase              =						2
       while True:
              _UpperCamelCase              =						factor_map.pop(lowerCAmelCase    ,       lowerCAmelCase					)
              if factor:
                     _UpperCamelCase              =						factor + prime
                     while x in factor_map:
                            x += factor
                     _UpperCamelCase              =						factor
              else:
                     _UpperCamelCase              =						prime
                     yield prime
              prime += 1


def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase = 1E10					):

       '''simple docstring'''





       _UpperCamelCase              =						sieve()

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


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













def     SCREAMING_SNAKE_CASE			(      lowerCAmelCase    ,       lowerCAmelCase    ,       lowerCAmelCase = 0    ,       lowerCAmelCase = 0					):
       _UpperCamelCase              =						right or len(lowerCAmelCase					) - 1
       if left > right:
              return -1
       elif list_data[left] == key:
              return left
       elif list_data[right] == key:
              return right
       else:
              return search(lowerCAmelCase    ,       lowerCAmelCase    ,       left + 1    ,       right - 1					)


if __name__ == "__main__":
       import doctest

       doctest.testmod()






