


'''simple docstring'''



from maths.prime_factors import prime_factors



def 			UpperCAmelCase__					(	UpperCAmelCase_    :				int							)     ->		int:
     if not isinstance(UpperCAmelCase_      ,    UpperCAmelCase_							):
          __lowerCamelCase   :	Any								=		F'Input value of [number={number}] must be an integer'
          raise TypeError(UpperCAmelCase_							)
     if number < 1:
          raise ValueError('Input must be a positive integer'							)
     return -1 if len(prime_factors(UpperCAmelCase_							)							) % 2 else 1


if __name__ == "__main__":
      import doctest

      doctest.testmod()










'''simple docstring'''



A__		:					Any												=  8.3_1_4_4_6_2  # Unit - J mol-1 K-1



def 			UpperCAmelCase__					(	UpperCAmelCase_    :				float      ,    UpperCAmelCase_    :				float      ,    UpperCAmelCase_    :				float							)     ->		float:
     if moles < 0 or kelvin < 0 or volume < 0:
          raise ValueError('Invalid inputs. Enter positive value.'							)
     return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume



def 			UpperCAmelCase__					(	UpperCAmelCase_    :				float      ,    UpperCAmelCase_    :				float      ,    UpperCAmelCase_    :				float							)     ->		float:
     if moles < 0 or kelvin < 0 or pressure < 0:
          raise ValueError('Invalid inputs. Enter positive value.'							)
     return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
      from doctest import testmod

      testmod()






