





'''simple docstring'''

def     __magic_name__							(				__UpperCAmelCase   )    ->       list[int]:

   '''simple docstring'''







   if num <= 0:
      raise ValueError("""Input must be a positive integer"""   )

   __SCREAMING_SNAKE_CASE   				=							[True] * (num + 1)

   __SCREAMING_SNAKE_CASE   				=							2
   while p * p <= num:
      if primes[p]:
         for i in range(p * p				,						num + 1				,						__UpperCAmelCase   ):
            __SCREAMING_SNAKE_CASE   				=							False
      p += 1

   return [prime for prime in range(2				,						num + 1   ) if primes[prime]]


if __name__ == "__main__":
    import doctest

    doctest.testmod()

    a   	=    int(input("Enter a positive integer: ").strip())
    print(prime_sieve_eratosthenes(user_num))












'''simple docstring'''

from PIL import Image

def     __magic_name__							(				__UpperCAmelCase				,						__UpperCAmelCase   )    ->       Image:

   '''simple docstring'''







   __SCREAMING_SNAKE_CASE   				=							(259 * (level + 255)) / (255 * (259 - level))

   def contrast(__UpperCAmelCase   ) -> int:
      return int(128 + factor * (c - 128)   )

   return img.point(__UpperCAmelCase   )


if __name__ == "__main__":
    # Load image
    with Image.open("image_data/lena.jpg") as img:
        # Change contrast to 170
        a   	=    change_contrast(img, 170)
        cont_img.save("image_data/lena_high_contrast.png", format="png")





