nth Prime

For a given n < 10000, this program will find the nth prime. This
program is not optimized; I don't have the skill yet to make it run
faster, but I know it can be made to do so.