Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (anonymous):

I'm working on a beginning course of python programming, the assignment I am stuck on is a program to compute and print out the 10000th prime number. I am attempting to use generator objects for the prime candidate and the divisors. I am missing something and could use some help. I have attached the file because I couldn't get it to show completely here. http://www.scribd.com/fullscreen/63456579?access_key=key-d5azbp0ezs7q5lbzvvp

OpenStudy (anonymous):

http://ideone.com/QCamb

OpenStudy (anonymous):

Your code is not checking for primes properly.

OpenStudy (anonymous):

Your code won't execute the first while block at all, which always evaluates to False, since you compare the d generator object to an integer

OpenStudy (anonymous):

got it figured, thanks for the help!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!