Skip to content

8140171224/Prime-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Get input from user

num = int(input('input for prime or not prime :'))

for loop can divsion between 0,1,2 and 3

for i in range(2,3):

If loop for in case num % i = 0 (5 / i = !0)

if num % i == 0:
    print("not prime")
    break

else for num % i = >= 1

else:
print('prime')

Here I'm

Information

BY aakashpadhiyar

8140171224