Python program to check prime number














































Python program to check prime number



In this article, we are going to look how to check if the given number is prime or not.

The prime number is a number greater than 1 and it's factors includes 1 and itself.

Source code : -


 num is the variable that we need to check if is prime or not.

Output :-




Comments