"""simple docstring"""





from math import sqrt





def 				a_     (      _lowerCAmelCase  : Union[str, Any]     ):





       '''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(sqrt(a__     ) + 1     )   , 6     ):
              if number % i == 0 or number % (i + 2) == 0:
                     return False
       return True





def 				a_     (      _lowerCAmelCase  : Optional[Any] = 1_0001     ):





       '''simple docstring'''

       lowercase__			:		Any       =	0
       lowercase__			:		Union[str, Any]       =	1
       while count != nth and number < 3:
              number += 1
              if is_prime(a__     ):
                     count += 1
       while count != nth:
              number += 2
              if is_prime(a__     ):
                     count += 1
       return number


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



# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works
from ...utils import deprecate
from ..controlnet.multicontrolnet import MultiControlNetModel  # noqa: F401
from ..controlnet.pipeline_controlnet import StableDiffusionControlNetPipeline  # noqa: F401


deprecate(
    'stable diffusion controlnet',
    '0.22.0',
    'Importing `StableDiffusionControlNetPipeline` or `MultiControlNetModel` from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_controlnet is deprecated. Please import `from diffusers import StableDiffusionControlNetPipeline` instead.',
    standard_warn=False,
    stacklevel=3,
)