Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

effient way to find prime no inpython

num = 13
if num > 1:
for i in range(2, num//2):
if (num % i) == 0:
print(num, "is not a prime number")
break
else:
print(num, "is a prime number")
else:
print(num, "is not a prime number")
Comment

PREVIOUS NEXT
Code Example
Python :: ~coinbase api 
Python :: Lazada link 
Python :: sort dictionary by values 
Python :: struct trong Python 
Python :: converting string key to int py 
Python :: order dataframe by specific column c1 
Python :: iterate 
Python :: python pause command 
Python :: convert a python object and store it in a JSON file in the local system 
Python :: how to click the next button on a website using python 
Python :: python concat list multiple times 
Python :: asdict that ignore sentinel 
Python :: # print random number 
Python :: python weekly aggreation string time 
Python :: colorutils python 
Python :: WS2812 Thonny microPython 
Python :: how to find factorial number in python 
Python :: Command to install Voluptuous Python Library 
Python :: matplotlib legend from scratch 
Python :: unique character 02 
Python :: prolog split list positive negative 
Python :: python create empty list with size 
Python :: counter and element of list for loop python 
Python :: Algorithm of Broadcasting with NumPy Arrays 
Python :: python terminal color 
Python :: Python NumPy asfortranarray Function Scalar to an array 
Python :: tensorflow configure multiple gpu 
Python :: add text to pdf file in python 
Python :: Program to get number of consecutive repeated substring 
Python :: NumPy packbits Syntax 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =