
"""simple docstring"""



from __future__ import annotations

import math


def 			_UpperCamelCase						(    _A   )     ->	list[int]:





    """simple docstring"""

    if num <= 0:
        _UpperCAmelCase        = F"""{num}: Invalid input, please enter a positive integer."""
        raise ValueError(_A   )

    _UpperCAmelCase        = [True] * (num + 1)
    _UpperCAmelCase        = []
    _UpperCAmelCase        = 2
    _UpperCAmelCase        = 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:
                    _UpperCAmelCase        = 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())))

"""simple docstring"""



import warnings
from functools import wraps
from typing import Callable


def 			_UpperCamelCase						(    _A   )     ->	Callable:





    """simple docstring"""

    @wraps(_A   )
    def _inner_fn(*_A       ,   **_A   ):
        warnings.warn(
            (F"""'{fn.__name__}' is experimental and might be subject to breaking changes in the future.""")       ,   _A       ,   )
        return fn(*_A       ,   **_A   )

    return _inner_fn