#include<stdio.h>

#include<conio.h>

int main()

{

int n,d;

//clrscr();

printf("\n\tEnter any number");

scanf("%d",&n);

d=2;

while(d<n)

{

if(n%d==0)

{

printf("\tGiven no is not prime number");

break;

}

else

d++;

}

if(n==d)

printf("\tGiven no is prime number");

//getch();

return 0;

}

Output:

Enter any number: 13

Given no is prime number


Enter any number 25

Given no is not prime number