"""simple docstring"""







def 						__UpperCAmelCase       (					UpperCAmelCase_					:       int						)							->    list[int]:

	'''simple docstring'''





	if num <= 0:
		raise ValueError('Input must be a positive integer'						)

	__snake_case    :							str   	=				[True] * (num + 1)

	__snake_case    :							Union[str, Any]   	=				2
	while p * p <= num:
		if primes[p]:
			for i in range(p * p    ,							num + 1    ,							UpperCAmelCase_						):
				__snake_case    :							List[str]   	=				False
		p += 1

	return [prime for prime in range(2    ,							num + 1						) if primes[prime]]


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	_a  :  str=				int(input("Enter a positive integer: ").strip())
	print(prime_sieve_eratosthenes(user_num))






"""simple docstring"""







def 						__UpperCAmelCase       (					UpperCAmelCase_					:       list[int]    ,							UpperCAmelCase_					:       str						)							->    list[int]:

	'''simple docstring'''





	__snake_case    :							Union[str, Any]   	=				int(UpperCAmelCase_						)

	# Initialize Result
	__snake_case    :							int   	=				[]

	# Traverse through all denomination
	for denomination in reversed(UpperCAmelCase_						):
		# Find denominations
		while int(UpperCAmelCase_						) >= int(UpperCAmelCase_						):
			total_value -= int(UpperCAmelCase_						)
			answer.append(UpperCAmelCase_						)  # Append the "answers" array

	return answer


# Driver Code
if __name__ == "__main__":
	_a  :  Optional[int]=				[]
	_a  :  Optional[int]=				"0"

	if (
	    input("Do you want to enter your denominations ? (yY/n): ").strip().lower()
	    == "y"
	):
		_a  :  int=				int(input("Enter the number of denominations you want to add: ").strip())

		for i in range(0, n):
			denominations.append(int(input(f'''Denomination {i}: ''').strip()))
		_a  :  Optional[int]=				input("Enter the change you want to make in Indian Currency: ").strip()
	else:
		# All denominations of Indian Currency if user does not enter
		_a  :  Tuple=				[1, 2, 5, 10, 20, 50, 100, 500, 2_000]
		_a  :  List[str]=				input("Enter the change you want to make: ").strip()

	if int(value) == 0 or int(value) < 0:
		print("The total value cannot be zero or negative.")

	else:
		print(f'''Following is minimal change for {value}: ''')
		_a  :  List[Any]=				find_minimum_change(denominations, value)
		# Print result
		for i in range(len(answer)):
			print(answer[i], end=" ")





