Python: Problem with raw_input reading a number
Solution 1:
Do
totPrimes = int(totPrimes)
while count < totPrimes:
# code
raw_input
gives you a string you must convert to an integer or float before making any numeric comparison.
Do
totPrimes = int(totPrimes)
while count < totPrimes:
# code
raw_input
gives you a string you must convert to an integer or float before making any numeric comparison.