'''simple docstring'''




import itertools
import math






def __lowerCAmelCase (							UpperCamelCase__				)	->    bool:

    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(math.sqrt(UpperCamelCase__				) + 1				)				,  6				):
        if number % i == 0 or number % (i + 2) == 0:
            return False
    return True






def __lowerCAmelCase (							)	->    List[Any]:
    __lowerCamelCase		=  2
    while True:
        if is_prime(UpperCamelCase__				):
            yield num
        num += 1






def __lowerCAmelCase (							UpperCamelCase__ = 1_00_01				)	->    int:
    return next(itertools.islice(prime_generator()				,  nth - 1				,  UpperCamelCase__				)				)


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



from decimal import Decimal, getcontext
from math import ceil, factorial


def   __SCREAMING_SNAKE_CASE					(SCREAMING_SNAKE_CASE__       ):

						if not isinstance(SCREAMING_SNAKE_CASE__  ,		SCREAMING_SNAKE_CASE__       ):
												raise TypeError('''Undefined for non-integers'''       )
						elif precision < 1:
												raise ValueError('''Undefined for non-natural numbers'''       )

						snake_case_   =	precision
						snake_case_   =	ceil(precision / 14       )
						snake_case_   =	426880 * Decimal(10005       ).sqrt()
						snake_case_   =	1
						snake_case_   =	13591409
						snake_case_   =	Decimal(SCREAMING_SNAKE_CASE__       )
						for k in range(1  ,		SCREAMING_SNAKE_CASE__       ):
												snake_case_   =	factorial(6 * k       ) // (factorial(3 * k       ) * factorial(SCREAMING_SNAKE_CASE__       ) ** 3)
												linear_term += 545140134
												exponential_term *= -262537412640768000
												partial_sum += Decimal(multinomial_term * linear_term       ) / exponential_term
						return str(constant_term / partial_sum       )[:-1]


if __name__ == "__main__":
					lowerCAmelCase_       	=	50
					print(f"""The first {n} digits of pi is: {pi(n)}""")