Intro to CS - Prime Number Problem help
I'm auditing the online intro to CS in Python (MIT 6.00) and am strugling with the problem set number 1 on computing the 1000th prime number. I don't feel that I'm very close. I'm open to suggestions. Here's my code thus far...
prime_count = 1
primes = (2, )
prime_test = 3
while prime_count <=1000:
if prime_test%2 == 1:
prime_test += 2
for n in range(3,prime_test/2):
if prime_test%n > 0:
prime_count += 1
print primes + (prime_test,)
The output I get is nothing near prime number. It is

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.