






from __future__ import annotations

def     snake_case   (UpperCAmelCase__    )			->							float:
  UpperCamelCase_:   Optional[Any]        =							0.00
  UpperCamelCase_:   List[Any]        =							0
  for resistor in resistors:
    if resistor <= 0:
      UpperCamelCase_:   Union[str, Any]        =							F'''Resistor at index {index} has a negative or zero value!'''
      raise ValueError(UpperCAmelCase__    )
    first_sum += 1 / float(UpperCAmelCase__    )
    index += 1
  return 1 / first_sum

def     snake_case   (UpperCAmelCase__    )			->							float:
  UpperCamelCase_:   Tuple        =							0.00
  UpperCamelCase_:   Union[str, Any]        =							0
  for resistor in resistors:
    sum_r += resistor
    if resistor < 0:
      UpperCamelCase_:   Optional[int]        =							F'''Resistor at index {index} has a negative value!'''
      raise ValueError(UpperCAmelCase__    )
    index += 1
  return sum_r


if __name__ == "__main__":
   import doctest

   doctest.testmod()







'''simple docstring'''



from math import isqrt



def  __UpperCAmelCase						(					SCREAMING_SNAKE_CASE__:						int     )	->      bool:

   """simple docstring"""
   return all(number % divisor != 0 for divisor in range(2,       isqrt(SCREAMING_SNAKE_CASE__     ) + 1     )     )



def  __UpperCAmelCase						(					SCREAMING_SNAKE_CASE__:						int = 10**6     )	->      int:

   """simple docstring"""
   __a					  =     0
   __a					  =     1
   __a					  =     7
   while prime_candidate < max_prime:
      primes_count += is_prime(SCREAMING_SNAKE_CASE__     )

      cube_index += 1
      prime_candidate += 6 * cube_index

   return primes_count


if __name__ == "__main__":
 print(f"""{solution() = }""")