Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

prime number program in python print 1 to 100

for Number in range (1, 101):
    count = 0
    for i in range(2, (Number//2 + 1)):
        if(Number % i == 0):
            count = count + 1
            break

    if (count == 0 and Number != 1):
        print(" %d" %Number, end = '  ')
Comment

PREVIOUS NEXT
Code Example
Python :: python armstrong number 
Python :: python split list of tuples in two lists 
Python :: tkinter label textvariable example 
Python :: python for loop backwards 
Python :: python pandas cumulative return 
Python :: can you edit string.punctuation 
Python :: pyqt5 change table widget column width 
Python :: exoort csv google colab 
Python :: python get current user windows 
Python :: read tsv file column 
Python :: python watchgod 
Python :: drop a column from dataframe 
Python :: capitalize first letter in python 
Python :: how to download youtube playlist using python 
Python :: how to delete a turtle in python 
Python :: how to get user input of list in python 
Python :: python copy all files in a folder to nother folder 
Python :: python: check type and ifno of a data frame 
Python :: pandas add header to existing dataframe 
Python :: how to find mean of one column based on another column in python 
Python :: python change cwd to script directory 
Python :: python dataframe get numeric columns 
Python :: grassmann formula 
Python :: selenium python chrome path 
Python :: perfect number program in python 
Python :: python selenium save cookies 
Python :: how to set indian timezone in django 
Python :: python clock 
Python :: scikit learn svm 
Python :: list methods python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =