/*To find the given number is prime or not
  what is prime?
	A number which is divisible by the same number
*/

#include<stdio.h>
main()
{
	int a,i,count;
	clrscr();
	printf("enter the number\n");
	scanf("%d",&a);
	i=3;
	count=0;
	while(i<=a)
	{
		if (a%i==0)
			count=count+1;
		i++;
	}
	if (count==1)
		printf("The given number %d is prime",a);
	else
		printf("The given number %d is not prime",a);
	getch();
}