Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (eujc21):

1000th prime http://codepad.org/BvBfHSyK

OpenStudy (maitre_kaio):

Do you have any particular question with this code ?

OpenStudy (anonymous):

cool - at line 7 you have to guess at the limit for the range of numbers to be tested for primeness. while you guessed correctly this time, it is possible to run out of numbers before you reach max_count (if you guess wrong or max_count changes). you could probably figure out a way that was more generic - without that guess.

OpenStudy (eujc21):

Thanks for the advice, yeah guessing is what im trying to get away from.

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!