I am STUMPED!!! I have read through my code and I can't see why it is missing some numbers as even and calling them primes. If any good samaritans out there could review this I would be appreciative.
print "Thank you for using Greg's Prime Number Generator"
## primes = raw_input ('How many Prime Numbers do you need?: ')
primes = 20
count = 0
n = 2
while count < primes:
if n < 3:
## This denotes 2 as a prime
count = count + 1
print count, n
n = n + 1
else:
hid = int (n**(0.5)) + 1 # Resets var (hid) to sqrt of n (+ 1)

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.