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

I have also begonnen with the first of the two problems from the second chapter. I can generate all odd numbers, but I can't see the light to express in a algorithm to check if it is a prim number. Any suggestion...???

OpenStudy (anonymous):

How big are the numbers you want to test?

OpenStudy (anonymous):

Please post your attempt to check of the number is prime>

OpenStudy (anonymous):

Thanks for the reply: > 1 < 1000

OpenStudy (anonymous):

Can you post the code that checks if a number is prime?

OpenStudy (anonymous):

I don't have it...!

OpenStudy (anonymous):

Don't you want to try and code it yourself? I can give you the code to find a prime, but it won't do you any good! Up to you though!

OpenStudy (anonymous):

Thank you very much, but like you reply, i want it to find it out by myself...:-)

OpenStudy (anonymous):

To give you a hint... use modulo!

OpenStudy (anonymous):

Again thanks...:-)

OpenStudy (anonymous):

Any time!

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
3 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
3 days 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!