




'''simple docstring'''

from maths.prime_check import is_prime


def 		__magic_name__    (	__UpperCAmelCase	)		->					int:

					'''simple docstring'''

					if not isinstance(__UpperCAmelCase,      __UpperCAmelCase	):
										snake_case_									=				F"Input value of [number={number}] must be an integer"
										raise TypeError(__UpperCAmelCase	)
					if is_prime(__UpperCAmelCase	) and is_prime(number + 2	):
										return number + 2
					else:
										return -1


if __name__ == "__main__":
							import doctest

							doctest.testmod()







'''simple docstring'''

import re

from filelock import FileLock


try:
							import nltk

							a  :				Union[str, Any]									=  True
except (ImportError, ModuleNotFoundError):
							a  :				Any									=  False

if NLTK_AVAILABLE:
							with FileLock('.lock') as lock:
														nltk.download('punkt', quiet=True)


def 		__magic_name__    (	__UpperCAmelCase	)		->					str:

					'''simple docstring'''

					re.sub('''<n>''',      '''''',      __UpperCAmelCase	)  # remove pegasus newline char
					assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
					return "\n".join(nltk.sent_tokenize(__UpperCAmelCase	)	)

