
from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCAmelCase    					=   logging.get_logger(__name__)

class 						a   (				__magic_name__    ):
				_snake_case		    = '''timm_backbone'''




				def __init__(							self	:				Tuple,    SCREAMING_SNAKE_CASE_	:				Any=None,    SCREAMING_SNAKE_CASE_	:				int=3,    SCREAMING_SNAKE_CASE_	:				Optional[Any]=True,    SCREAMING_SNAKE_CASE_	:				Any=True,    SCREAMING_SNAKE_CASE_	:				int=None,    **SCREAMING_SNAKE_CASE_	:				str,    ):
										super().__init__(**SCREAMING_SNAKE_CASE_      )
										snake_case       :     Tuple =    backbone
										snake_case       :     Tuple =    num_channels
										snake_case       :     Union[str, Any] =    features_only
										snake_case       :     List[Any] =    use_pretrained_backbone
										snake_case       :     Any =    True
										snake_case       :     Tuple =    out_indices if out_indices is not None else (-1,)



'''simple docstring'''





from __future__ import annotations

import math

def      A (       A_							:					int       ):

						if num <= 0:
												snake_case       :     List[Any] =    F"""{num}: Invalid input, please enter a positive integer."""
												raise ValueError(A_       )

						snake_case       :     Optional[Any] =    [True] * (num + 1)
						snake_case       :     List[str] =    []
						snake_case       :     List[Any] =    2
						snake_case       :     str =    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:
																														snake_case       :     int =    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())))

