
def 					__lowerCAmelCase    (    a__						) ->						float:
				return -num if num < 0 else num


def 					__lowerCAmelCase    (    a__						) ->						int:
				if len(a__						) == 0:
								raise ValueError('''abs_min() arg is an empty sequence'''						)
				__a    							=					x[0]
				for i in x:
								if abs_val(a__						) < abs_val(a__						):
												__a    							=					i
				return j


def 					__lowerCAmelCase    (    a__						) ->						int:
				if len(a__						) == 0:
								raise ValueError('''abs_max() arg is an empty sequence'''						)
				__a    							=					x[0]
				for i in x:
								if abs(a__						) > abs(a__						):
												__a    							=					i
				return j


def 					__lowerCAmelCase    (    a__						) ->						int:
				if len(a__						) == 0:
								raise ValueError('''abs_max_sort() arg is an empty sequence'''						)
				return sorted(a__		,					key=a__						)[-1]


def 					__lowerCAmelCase    (    ) ->						str:
				assert abs_val(0						) == 0
				assert abs_val(34						) == 34
				assert abs_val(-1000_0000_0000						) == 1000_0000_0000

				__a    							=					[-3, -1, 2, -11]
				assert abs_max(a__						) == -11
				assert abs_max_sort(a__						) == -11
				assert abs_min(a__						) == -1


if __name__ == "__main__":
					import doctest

					doctest.testmod()

					test_abs_val()
					print(abs_val(-3_4))  # --> 34








from itertools import compress, repeat
from math import ceil, sqrt


def 					__lowerCAmelCase    (    a__						) ->						list[int]:

				if num <= 2:
								return []
				if num == 3:
								return [2]

				# Odd sieve for numbers in range [3, num - 1]
				__a    							=					bytearray(B'''\x01'''						) * ((num >> 1) - 1)

				for i in range(3		,					int(sqrt(a__						)						) + 1		,					2						):
								if sieve[(i >> 1) - 1]:
												__a    							=					i**2
												__a    							=					repeat(
												    0		,					ceil((num - i_squared) / (i << 1)						)						)

				return [2] + list(compress(range(3		,					a__		,					2						)		,					a__						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()