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.
More Related Contents:
- How to treat raw_input variables as integers [closed]
- How to set time limit on raw_input
- raw_input and timeout [duplicate]
- Masking user input in python with asterisks
- Tab completion in Python’s raw_input()
- How to let a raw_input repeat until I want to quit?
- How do I check if raw input is integer in python 2.7?
- Backwards-compatible input calls in Python
- Behaviour of raw_input()
- NameError: name ‘raw_input’ is not defined [duplicate]
- How do I use itertools.groupby()?
- u’\ufeff’ in Python string
- Adding days to a date in Python
- How to take column-slices of dataframe in pandas
- Why isn’t PyCharm’s autocomplete working for libraries I install?
- Pygame Drawing a Rectangle
- How can I make a scatter plot colored by density in matplotlib?
- Creating a Pandas DataFrame from a Numpy array: How do I specify the index column and column headers?
- How can I account for period (AM/PM) using strftime?
- How do I iterate through two lists in parallel?
- Validating detailed types in python dataclasses
- Shift column in pandas dataframe up by one?
- Unable to locate elements in Selenium (Python)
- How to use a conditional statement based on DataFrame boolean value in pandas
- sklearn plot confusion matrix with labels
- Which maximum does Python pick in the case of a tie?
- How to implement virtual methods in Python?
- Python: Replace with regex
- Python Requests – SSL error for client side cert
- How does str.startswith really work?