
from __future__ import annotations

import math

def a__    (       A_					):






  '''simple docstring'''





  if num <= 0:
    __magic_name__				     =       f'''{num}: Invalid input, please enter a positive integer.'''
    raise ValueError(A_					)

  __magic_name__				     =       [True] * (num + 1)
  __magic_name__				     =       []
  __magic_name__				     =       2
  __magic_name__				     =       int(math.sqrt(A_					)					)

  while start <= end:
    # If start is a prime
    if sieve[start] is True:
      prime.append(A_					)

      # Set multiples of start be False
      for i in range(start * start,     num + 1,     A_					):
        if sieve[i] is True:
          __magic_name__				     =       False

    start += 1

  for j in range(end + 1,     num + 1					):
    if sieve[j] is True:
      prime.append(A_					)

  return prime


if __name__ == "__main__":
    print(prime_sieve(int(input('Enter a positive integer: ').strip())))








import PIL.Image
import PIL.ImageOps
from packaging import version
from PIL import Image


if version.parse(version.parse(PIL.__version__).base_version) >= version.parse('''9.1.0'''):
	lowerCAmelCase_    =				{
	    '''linear''': PIL.Image.Resampling.BILINEAR,
	    '''bilinear''': PIL.Image.Resampling.BILINEAR,
	    '''bicubic''': PIL.Image.Resampling.BICUBIC,
	    '''lanczos''': PIL.Image.Resampling.LANCZOS,
	    '''nearest''': PIL.Image.Resampling.NEAREST,
	}
else:
	lowerCAmelCase_    =				{
	    '''linear''': PIL.Image.LINEAR,
	    '''bilinear''': PIL.Image.BILINEAR,
	    '''bicubic''': PIL.Image.BICUBIC,
	    '''lanczos''': PIL.Image.LANCZOS,
	    '''nearest''': PIL.Image.NEAREST,
	}






def      lowerCamelCase_						(				_UpperCamelCase )		->						Optional[int]:






				"""simple docstring"""


				snake_case_						:    Dict				=  (images / 2 + 0.5).clamp(0 ,				1 )
				snake_case_						:    Dict				=  images.cpu().permute(0 ,				2 ,				3 ,				1 ).float().numpy()
				snake_case_						:    int				=  numpy_to_pil(_UpperCamelCase )
				return images






def      lowerCamelCase_						(				_UpperCamelCase )		->						List[Any]:






				"""simple docstring"""


				if images.ndim == 3:
								snake_case_						:    Optional[Any]				=  images[None, ...]
				snake_case_						:    Any				=  (images * 255).round().astype('''uint8''' )
				if images.shape[-1] == 1:
								# special case for grayscale (single channel) images
								snake_case_						:    str				=  [Image.fromarray(image.squeeze() ,				mode='''L''' ) for image in images]
				else:
								snake_case_						:    List[Any]				=  [Image.fromarray(_UpperCamelCase ) for image in images]

				return pil_images
