"""simple docstring"""






from maths.prime_check import is_prime


def 			UpperCAmelCase__       (				lowerCAmelCase__     :int		) ->    int:
      '''simple docstring'''


      if not isinstance(lowerCAmelCase__					,		lowerCAmelCase__		):
            lowercase														=	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()




"""simple docstring"""






from __future__ import annotations


def 			UpperCAmelCase__       (				lowerCAmelCase__     :list[int]		) ->    int:
      '''simple docstring'''


      if not nums:
            return 0
      lowercase														=	nums[0]
      lowercase														=	0
      for num in nums[1:]:
            lowercase							,							lowercase														=	(
                max_excluding + num,
                max(lowerCAmelCase__					,		lowerCAmelCase__		),
            )
      return max(lowerCAmelCase__					,		lowerCAmelCase__		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()



