Simple prime number generator in Python
There are some problems: Why do you print out count when it didn’t divide by x? It doesn’t mean it’s prime, it means only that this particular x doesn’t divide it continue moves to the next loop iteration – but you really want to stop it using break Here’s your code with a few fixes, … Read more