If you want a hint, here's how I solved that one. Incidentally, I only know how to program on the Texas Instruments calculators, so I solved that one using a TI-89 haha. I pretty much used a brute force approach, but you can simplify it by only testing factors less than or equal to the square root of a number, and also there's no sense in testing any even numbered factors except for 2.
I did a brute force search, modified by only diving each number by 2, then by every odd integer up to the square root of the number.
I'm sure you could estimate using the asymptotic function to the prime numbers as to about what range is the 10001st prime contained in, but I was feeling lazy and just did brute force.
And yes don't cheat lol, that takes all the fun out of it.
Chris