Just input whatever number you want, just keep in mind that the larger your number is, the more time it'll take to calculate the nth prime.
The code just basically divide every number by the primes found as well as keeping track on how many primes has been counted.