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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!