C program to check whether number is Prime or Not
This program will read an integer number and check whether it is Prime number of not. Primer Numbers are those numbers which divides by itself, for example 19 is a Primer Number because it can be divided by 19 Only.
To check number is prime or not, we will divide numbers from 2 to Number/2 in a loop. If it is divisible by any number between the 2 to 19/2, number will not be primer but here 19 will not be divided so it is a prime number.
Check Prime Number using C program
Using User Define Function
Output
need an explanation for this answer? contact us directly to get an explanation for this answer