from __future__ import annotations

from collections import namedtuple






def        __UpperCAmelCase    (       UpperCAmelCase,		UpperCAmelCase,		UpperCAmelCase       )->       tuple:



   """simple docstring"""







   lowercase							=		namedtuple('''result''',		'''name value'''       )
   if (voltage, current, power).count(0       ) != 1:
      raise ValueError('''Only one argument must be 0'''       )
   elif power < 0:
      raise ValueError(
          '''Power cannot be negative in any electrical/electronics system'''       )
   elif voltage == 0:
      return result('''voltage''',		power / current       )
   elif current == 0:
      return result('''current''',		power / voltage       )
   elif power == 0:
      return result('''power''',		float(round(abs(voltage * current       ),		2       )       )       )
   else:
      raise ValueError('''Exactly one argument must be 0'''       )


if __name__ == "__main__":
      import doctest

      doctest.testmod()






from __future__ import annotations

import math






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



			"""simple docstring"""







			if num <= 0:
						lowercase							=		f'{num}: Invalid input, please enter a positive integer.'
						raise ValueError(UpperCAmelCase       )

			lowercase							=		[True] * (num + 1)
			lowercase							=		[]
			lowercase							=		2
			lowercase							=		int(math.sqrt(UpperCAmelCase       )       )

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

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

						start += 1

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

			return prime


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





