C program to find prime number using for loop

C program to find prime number using for loop

Output:

Enter a number to find prime or not:
8
8 is not a prime number

Implementation: