Sun K.

asked • 06/29/14

How do I write this python program?

Write a python program to find the 1000th prime number. 
 
Here's what I wrote:
def nthprime(n):
     print nthprime(1000)
 
and when I run it, I got nothing. What's wrong with my code? Please provide me a very short accurate code for this python program. And tell me the right answer. Thanks.

1 Expert Answer

By:

Inactive Tutor answered • 06/29/14

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.