

"""simple docstring"""


from __future__ import annotations

import math






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     bool:

		if 1 < number < 4:
				# 2 and 3 are primes
				return True
		elif number < 2 or number % 2 == 0 or number % 3 == 0:
				# Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
				return False

		# All primes number are in format of 6k +/- 1
		for i in range(5 ,			int(math.sqrt(__SCREAMING_SNAKE_CASE			) + 1			) ,			6			):
				if number % i == 0 or number % (i + 2) == 0:
						return False
		return True






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     list[int]:
		__lowerCAmelCase:	Any   				=      str(__SCREAMING_SNAKE_CASE			)
		__lowerCAmelCase:	str   				=      [n]
		for i in range(1 ,			len(__SCREAMING_SNAKE_CASE			)			):
				list_nums.append(int(str_num[i:]			)			)
				list_nums.append(int(str_num[:-i]			)			)
		return list_nums






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     bool:
		if len(str(__SCREAMING_SNAKE_CASE			)			) > 3:
				if not is_prime(int(str(__SCREAMING_SNAKE_CASE			)[-3:]			)			) or not is_prime(int(str(__SCREAMING_SNAKE_CASE			)[:3]			)			):
						return False
		return True






def    a__   (   __SCREAMING_SNAKE_CASE = 1_1			)     ->     list[int]:
		__lowerCAmelCase:	list[int]   				=      []
		__lowerCAmelCase:	Optional[Any]   				=      1_3
		while len(__SCREAMING_SNAKE_CASE			) != count:
				if validate(__SCREAMING_SNAKE_CASE			):
						__lowerCAmelCase:	int   				=      list_truncated_nums(__SCREAMING_SNAKE_CASE			)
						if all(is_prime(__SCREAMING_SNAKE_CASE			) for i in list_nums			):
								list_truncated_primes.append(__SCREAMING_SNAKE_CASE			)
				num += 2
		return list_truncated_primes






def    a__   (   )     ->     int:
		return sum(compute_truncated_primes(1_1			)			)


if __name__ == "__main__":
							print(F'''{sum(compute_truncated_primes(11)) = }''')





"""simple docstring"""


from __future__ import annotations

from math import pi






def    a__   (   __SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)     ->     dict[str, float]:

		if (inductance, frequency, reactance).count(0			) != 1:
				raise ValueError("One and only one argument must be 0"			)
		if inductance < 0:
				raise ValueError("Inductance cannot be negative"			)
		if frequency < 0:
				raise ValueError("Frequency cannot be negative"			)
		if reactance < 0:
				raise ValueError("Inductive reactance cannot be negative"			)
		if inductance == 0:
				return {"inductance": reactance / (2 * pi * frequency)}
		elif frequency == 0:
				return {"frequency": reactance / (2 * pi * inductance)}
		elif reactance == 0:
				return {"reactance": 2 * pi * frequency * inductance}
		else:
				raise ValueError("Exactly one argument must be 0"			)


if __name__ == "__main__":
			import doctest

			doctest.testmod()


