
'''simple docstring'''







import math





def 					UpperCAmelCase_		(__a      :    int ):






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





def 					UpperCAmelCase_		(__a      :    float = 0.1 ):






   """simple docstring"""

   _a				:	Dict			=   3
   _a				:	Optional[Any]			=   3

   while primes / (2 * j - 1) >= ratio:
      for i in range(j * j + j + 1 ,	(j + 2) * (j + 2) ,	j + 1 ):
         primes += is_prime(__a )
      j += 2
   return j


if __name__ == "__main__":
  import doctest

  doctest.testmod()





'''simple docstring'''







import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


__lowerCAmelCase         =    HUGGINGFACE_HUB_CACHE


__lowerCAmelCase         =    """config.json"""
__lowerCAmelCase         =    """diffusion_pytorch_model.bin"""
__lowerCAmelCase         =    """diffusion_flax_model.msgpack"""
__lowerCAmelCase         =    """model.onnx"""
__lowerCAmelCase         =    """diffusion_pytorch_model.safetensors"""
__lowerCAmelCase         =    """weights.pb"""
__lowerCAmelCase         =    """https://huggingface.co"""
__lowerCAmelCase         =    default_cache_path
__lowerCAmelCase         =    """diffusers_modules"""
__lowerCAmelCase         =    os.getenv("""HF_MODULES_CACHE""", os.path.join(hf_cache_home, """modules"""))
__lowerCAmelCase         =    ["""fp16""", """non-ema"""]
__lowerCAmelCase         =    """.self_attn"""



