Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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")
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #effient #find #prime #inpython
ADD COMMENT
Topic
Name
5+6 =