Python Program to Check Prime NumberPrime numbers: A prime number is a natural number greater than 1 and having no positive divisor other than 1 and itself. For example: 3, 7, 11 etc are prime numbers. Composite number: Other natural numbers that are not prime numbers are called composite numbers. For example: 4, 6, 9 etc. are composite numbers. See this example:
Output:
|