



'''simple docstring'''

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





			"""simple docstring"""







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

			snake_case:    List[Any]      							=[True] * (num + 1)

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

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


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	a							   =				int(input('Enter a positive integer: ').strip())
	print(prime_sieve_eratosthenes(user_num))









'''simple docstring'''

import qiskit







def a_     (    __UpperCAmelCase				,							__UpperCAmelCase					)				->					qiskit.result.counts.Counts:





			"""simple docstring"""







			snake_case:    Union[str, Any]      							=qiskit.Aer.get_backend('aer_simulator'					)

			# Create a Quantum Circuit acting on the q register
			snake_case:    Dict      							=qiskit.QuantumCircuit(__UpperCAmelCase				,							__UpperCAmelCase					)

			# Map the quantum measurement to the classical bits
			circuit.measure([0]				,							[0]					)

			# Execute the circuit on the simulator
			snake_case:    Dict      							=qiskit.execute(__UpperCAmelCase				,							__UpperCAmelCase				,							shots=10_00					)

			# Return the histogram data of the results of the experiment.
			return job.result().get_counts(__UpperCAmelCase					)


if __name__ == "__main__":
	print(F"""Total count for various states are: {single_qubit_measure(1, 1)}""")




