def divider while and if if print This is not prime number else print

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
def divider(n):
i = 2
j = 0
while i**2 <= n and j != 1:
if n%i == 0:
j = 1
i += 1
if j == 1:
print ("This is not a prime number")
else:
print ("This is a prime number")
n=2019
divider(n)