





'''simple docstring'''

from __future__ import annotations

import math

lowercase_					= """2020.9.26"""
lowercase_					= """xcodz-dot, cclaus, dhruvmanila"""





def lowerCamelCase						(     __lowerCamelCase :    float					,       __lowerCamelCase :    float					,       __lowerCamelCase :    float					,       __lowerCamelCase :    float					,       __lowerCamelCase :    float    )						->tuple[float, float]:
    if not all(isinstance(__lowerCamelCase					,       (float, int)    ) for val in locals().values()    ):
        _SCREAMING_SNAKE_CASE									=			F'Input values must either be float or int: {list(locals().values()    )}'
        raise TypeError(__lowerCamelCase    )
    _SCREAMING_SNAKE_CASE									=			((x * distance) / (z + distance)) * scale
    _SCREAMING_SNAKE_CASE									=			((y * distance) / (z + distance)) * scale
    return projected_x, projected_y





def lowerCamelCase						(     __lowerCamelCase :    float					,       __lowerCamelCase :    float					,       __lowerCamelCase :    float					,       __lowerCamelCase :    str					,       __lowerCamelCase :    float    )						->tuple[float, float, float]:
    if not isinstance(__lowerCamelCase					,       __lowerCamelCase    ):
        raise TypeError("""Axis must be a str"""    )
    _SCREAMING_SNAKE_CASE									=			locals()
    del input_variables["axis"]
    if not all(isinstance(__lowerCamelCase					,       (float, int)    ) for val in input_variables.values()    ):
        _SCREAMING_SNAKE_CASE									=			(
            """Input values except axis must either be float or int: """
            F'{list(input_variables.values()    )}'
        )
        raise TypeError(__lowerCamelCase    )
    _SCREAMING_SNAKE_CASE									=			(angle % 360) / 450 * 180 / math.pi
    if axis == "z":
        _SCREAMING_SNAKE_CASE									=			x * math.cos(__lowerCamelCase    ) - y * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			y * math.cos(__lowerCamelCase    ) + x * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			z
    elif axis == "x":
        _SCREAMING_SNAKE_CASE									=			y * math.cos(__lowerCamelCase    ) - z * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			z * math.cos(__lowerCamelCase    ) + y * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			x
    elif axis == "y":
        _SCREAMING_SNAKE_CASE									=			x * math.cos(__lowerCamelCase    ) - z * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			z * math.cos(__lowerCamelCase    ) + x * math.sin(__lowerCamelCase    )
        _SCREAMING_SNAKE_CASE									=			y
    else:
        raise ValueError("""not a valid axis, choose one of 'x', 'y', 'z'"""    )

    return new_x, new_y, new_z


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      print(f"""{convert_to_ad(1.0, 2.0, 3.0, 1_0.0, 1_0.0) = }""")
      print(f"""{rotate(1.0, 2.0, 3.0, "y", 9_0.0) = }""")










'''simple docstring'''

from __future__ import annotations

import math





def lowerCamelCase						(     __lowerCamelCase :    int    )						->list[int]:

    if num <= 0:
        _SCREAMING_SNAKE_CASE									=			F'{num}: Invalid input, please enter a positive integer.'
        raise ValueError(__lowerCamelCase    )

    _SCREAMING_SNAKE_CASE									=			[True] * (num + 1)
    _SCREAMING_SNAKE_CASE									=			[]
    _SCREAMING_SNAKE_CASE									=			2
    _SCREAMING_SNAKE_CASE									=			int(math.sqrt(__lowerCamelCase    )    )

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

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

        start += 1

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

    return prime


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



