

'''simple docstring'''





import re
from pathlib import Path
from unittest import TestCase

import pytest


@pytest.mark.integration
class  UpperCAmelCase (							A__    ):

		'''simple docstring'''






		def 			UpperCamelCase(					self   ,			SCREAMING_SNAKE_CASE_		)  ->     Union[str, Any]:






							'''simple docstring'''



							with open(_UpperCamelCase   ,			encoding='utf-8'		) as input_file:
												lowerCamelCase_  				=      re.compile(r'(?!.*\b(?:encoding|rb|w|wb|w+|wb+|ab|ab+)\b)(?<=\s)(open)\((.*)\)'		)
												lowerCamelCase_  				=      input_file.read()
												lowerCamelCase_  				=      regexp.search(_UpperCamelCase		)

							return match
		def 			UpperCamelCase(					self   ,			SCREAMING_SNAKE_CASE_		)  ->     Tuple:






							'''simple docstring'''



							with open(_UpperCamelCase   ,			encoding='utf-8'		) as input_file:
												lowerCamelCase_  				=      re.compile(r'#[^\r\n]*print\(|\"[^\r\n]*print\(|\"\"\".*?print\(.*?\"\"\"|(print\()'   ,			re.DOTALL		)
												lowerCamelCase_  				=      input_file.read()
												# use `re.finditer` to handle the case where the ignored groups would be matched first by `re.search`
												lowerCamelCase_  				=      regexp.finditer(_UpperCamelCase		)

							lowerCamelCase_  				=      [match for match in matches if match is not None and match.group(1		) is not None]
							return matches[0] if matches else None
		def 			UpperCamelCase(					self		)  ->     Dict:






							'''simple docstring'''



							lowerCamelCase_  				=      Path('./datasets'		)
							lowerCamelCase_  				=      list(dataset_paths.absolute().glob('**/*.py'		)		)

							for dataset in dataset_files:
												if self._no_encoding_on_file_open(str(_UpperCamelCase		)		):
																	raise AssertionError(f'''open(...) must use utf-8 encoding in {dataset}'''		)






		def 			UpperCamelCase(					self		)  ->     Tuple:






							'''simple docstring'''



							lowerCamelCase_  				=      Path('./datasets'		)
							lowerCamelCase_  				=      list(dataset_paths.absolute().glob('**/*.py'		)		)

							for dataset in dataset_files:
												if self._no_print_statements(str(_UpperCamelCase		)		):
																	raise AssertionError(f'''print statement found in {dataset}. Use datasets.logger/logging instead.'''		)










from math import sqrt
def      A__       (    SCREAMING_SNAKE_CASE_   :      int						)  ->  bool:






   """simple docstring"""







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

   # All primes number are in format of 6k +/- 1
   for i in range(5				,	int(sqrt(SCREAMING_SNAKE_CASE_						) + 1						)				,	6						):
      if number % i == 0 or number % (i + 2) == 0:
         return False
   return True
def      A__       (    SCREAMING_SNAKE_CASE_   :      int = 1_00_01						)  ->  int:






   """simple docstring"""







   _UpperCAmelCase           =   0
   _UpperCAmelCase           =   1
   while count != nth and number < 3:
      number += 1
      if is_prime(SCREAMING_SNAKE_CASE_						):
         count += 1
   while count != nth:
      number += 2
      if is_prime(SCREAMING_SNAKE_CASE_						):
         count += 1
   return number


if __name__ == "__main__":
   print(f'''{solution() = }''')