



"""simple docstring"""






from maths.prime_check import is_prime


def     _lowercase       (						__snake_case			)		->     int:
			if not isinstance(__snake_case      ,__snake_case			):
						__lowerCAmelCase   :						Tuple				= F"""Input value of [number={number}] must be an integer"""
						raise TypeError(__snake_case			)
			if is_prime(__snake_case			) 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

	__snake_case							:     Any   =					True
except (ImportError, ModuleNotFoundError):
	__snake_case							:     Optional[int]   =					False

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


def     _lowercase       (						__snake_case			)		->     str:
			re.sub("<n>"      ,""      ,__snake_case			)  # 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(__snake_case			)			)