main()// Beginnig of the main
{
int prime=0,i=0,j=0,count=0;
printf("Enter the number\n"); // Prompt for input
scanf("%d",&prime);// Takes input form the user
for (i=1; i<=prime ; i++)// Beginning of first FOR loop
{
count=0;
for(j=1;j<=i;j++)// Beginnig of Second FOR loop
{
// printf("ccc%%d",i,j);
if (i%j==0)
{
count++; // or count++
}// End of IF
}//End of the second FOR loop
if (count==2)
{
printf("%d=is a prime number\n",i);
}// End of IF
}// End of the First For loop
}// End of the main