#By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
#What is the 10 001st prime number?


def isPrime(n):
    if n < 2: return False
    for i in range(2, int(n**0.5) + 1):
        if n % i == 0:
            return False
    return True

def one0001sPrime(n):
    numOfPrime = 0
    primeNumber = 1
    while numOfPrime < n:
        primeNumber += 1
        if isPrime(primeNumber):
            numOfPrime += 1
    return primeNumber


print(one0001sPrime(10001))
