/**************************************************************
* Program to find the Prime numbers between 2 and 50
***************************************************************/
#include <stdio.h>
int main()
{
int is_prime = 1, n;
for(int n = 2; n < 50; n++)
{
is_prime = 1;
for(int i = 2; i < n; i++)
{
if(n % i == 0)
{
is_prime = 0;
break;
}
}
if(is_prime)
{
printf("%d is prime\n", n);
}
}
return 0;
}