


"""simple docstring"""




import math







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int    )     ->		bool:

       """simple docstring"""

       assert isinstance(_UpperCAmelCase  ,   _UpperCAmelCase    ) and (
           number >= 0
       ), "'number' must been an int and positive"

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

       a_ :		Dict							=  range(3  ,   int(math.sqrt(_UpperCAmelCase    ) + 1    )  ,   2    )
       return not any(not number % i for i in odd_numbers    )







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int  ,   __A			:      List[str]=1  ,   **__A			:      List[Any]    )     ->		int:

       """simple docstring"""

       a_ :		Union[str, Any]							=  factor * value
       a_ :		List[Any]							=  value

       while not is_prime(_UpperCAmelCase    ):
              value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

       if value == first_value_val:
              return next_prime(value + 1  ,   **_UpperCAmelCase    )
       return value






def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		bool:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       if len(__A    ) == 1:
              return True
       a_ :		Tuple							=  series[1] - series[0]
       for index in range(len(__A    ) - 1    ):
              if series[index + 1] - series[index] != common_diff:
                     return False
       return True







def 	SCREAMING_SNAKE_CASE_						(      __A			:      list    )     ->		float:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input series is not valid, valid series - [2, 4, 6]'    )
       if len(__A    ) == 0:
              raise ValueError('Input list must be a non empty list'    )
       a_ :		str							=  0
       for val in series:
              answer += val
       return answer / len(__A    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


