primesFound = 0
number = 1
while primesFound < 1000:
    number = number + 1
divisor = 2
numberIsPrime = True
while divisor * divisor <= number:
    if number % divisor == 0:
        numberIsPrime = False
break
divisor = divisor + 1
if numberIsPrime:
    primesFound = primesFound + 1
print(number)
Calculating prime numbers