






from collections import defaultdict
from math import gcd






def 						a    (		lowerCamelCase_ = 150_0000       ):






				'''simple docstring'''
				lowercase__     				=    defaultdict(lowerCamelCase_       )
				lowercase__     				=    2
				while 2 * euclid_m * (euclid_m + 1) <= limit:
								for euclid_n in range((euclid_m % 2) + 1	,     lowerCamelCase_	,     2       ):
												if gcd(lowerCamelCase_	,     lowerCamelCase_       ) > 1:
																continue
												lowercase__     				=    2 * euclid_m * (euclid_m + euclid_n)
												for perimeter in range(lowerCamelCase_	,     limit + 1	,     lowerCamelCase_       ):
																frequencies[perimeter] += 1
								euclid_m += 1
				return sum(1 for frequency in frequencies.values() if frequency == 1       )


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












from __future__ import annotations






def 						a    (		lowerCamelCase_       ):






				'''simple docstring'''
				lowercase__     				=    0.00
				lowercase__     				=    0
				for resistor in resistors:
								if resistor <= 0:
												lowercase__     				=    F"""Resistor at index {index} has a negative or zero value!"""
												raise ValueError(lowerCamelCase_       )
								first_sum += 1 / float(lowerCamelCase_       )
								index += 1
				return 1 / first_sum






def 						a    (		lowerCamelCase_       ):






				'''simple docstring'''
				lowercase__     				=    0.00
				lowercase__     				=    0
				for resistor in resistors:
								sum_r += resistor
								if resistor < 0:
												lowercase__     				=    F"""Resistor at index {index} has a negative value!"""
												raise ValueError(lowerCamelCase_       )
								index += 1
				return sum_r


if __name__ == "__main__":
							import doctest

							doctest.testmod()




