
'''simple docstring'''
def 						A_(			A		:						int):
							if not isinstance(A						,			A):
														raise ValueError('double_factorial() only accepts integral values')
							if num < 0:
														raise ValueError('double_factorial() not defined for negative values')
							UpperCamelCase					       =			1
							for i in range(A						,			0						,			-2):
														value *= i
							return value


if __name__ == "__main__":
						import doctest

						doctest.testmod()






def 				A__    (  lowerCamelCase = 20  )     ->		int:

				try:
								UpperCamelCase_:							int		=  int(lowerCamelCase  )
				except (TypeError, ValueError):
								raise TypeError("""Parameter n must be int or castable to int."""  )
				if n <= 0:
								raise ValueError("""Parameter n must be greater than or equal to one."""  )
				UpperCamelCase_:							Any		=  0
				while 1:
								i += n * (n - 1)
								UpperCamelCase_:							List[Any]		=  0
								for j in range(2   ,			lowerCamelCase  ):
												if i % j != 0:
																UpperCamelCase_:							Union[str, Any]		=  1
																break
								if nfound == 0:
												if i == 0:
																UpperCamelCase_:							List[str]		=  1
												return i
				return None


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






