Dec-06-2017, 09:56 AM
(This post was last modified: Dec-06-2017, 09:56 AM by gruntfutuk.)
You've posted the details of the assignment.
You've posted an image of the code.
You've posted the code itself as just text but not inside python tags, so it is not formatted correctly.
You have not said what your problem is, what help you need, or what error you are getting.
Probably best to define isPrime() before you try to use it.
You have a while loop using counter, but do not increment counter. You have incremented count though.
What's wrong with a for loop anyway?
You never return a value from isPrime().
You only increment the number you are checking IF the previous number was a prime.
You've posted an image of the code.
You've posted the code itself as just text but not inside python tags, so it is not formatted correctly.
You have not said what your problem is, what help you need, or what error you are getting.
Probably best to define isPrime() before you try to use it.
You have a while loop using counter, but do not increment counter. You have incremented count though.
What's wrong with a for loop anyway?
You never return a value from isPrime().
You only increment the number you are checking IF the previous number was a prime.
I am trying to help you, really, even if it doesn't always seem that way