Here you will get python program to check prime number.
A number is called prime number if it is only divisible by 1 or itself. For example 2, 3, 5, 7, 11, etc are prime numbers.
Below program takes a number as input and checks it is prime number or not.
Python Program to Check Prime Number
num = int(input("enter a number: "))
for i in range(2, num):
if num % i == 0:
print("not prime number")
enter a number: 11
Comment below if you have any queries related to above python prime number program.