Python Program to Check Prime Number

Python Program to Check Prime Number

Here, you will get the source code of Python Program to Check Prime Number.

A prime number is a positive integer number greater than 1 that has only two positive divisors: 1 and itself.

Example code of Python Program to Check Prime Number

Output 1

Enter a number: 15
15 is not a prime number

Output 2

Enter a number: 13
13 is a prime number

 

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top