


import math







def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase			):

							if initial_intensity < 0:
														raise ValueError("The value of intensity cannot be negative"			)
														# handling of negative values of initial intensity
							if angle < 0 or angle > 3_6_0:
														raise ValueError("In Malus Law, the angle is in the range 0-360 degrees"			)
														# handling of values out of allowed range
							return initial_intensity * (math.cos(math.radians(__lowerCamelCase			)			) ** 2)


if __name__ == "__main__":
			import doctest

			doctest.testmod(name="malus_law")





from maths.prime_check import is_prime







def        lowerCAmelCase_  (      __lowerCamelCase			):
							if not isinstance(__lowerCamelCase							,			__lowerCamelCase			):
														__snake_case	:    List[str]											=     F'Input value of [number={number}] must be an integer'
														raise TypeError(__lowerCamelCase			)
							if is_prime(__lowerCamelCase			) and is_prime(number + 2			):
														return number + 2
							else:
														return -1


if __name__ == "__main__":
			import doctest

			doctest.testmod()

