#include <stdio.h>
int main(void)
{
int x, k;
int count=0;
for ( x=2 ; x<=100 ; x++)
{
for ( k=1 ; k<=x ; k++)
{
if ( x%k == 0)
count++;
}
if (count == 2)
printf("%d ", x);
count = 0;
}
printf("\n");
return 0;
}
#include <stdio.h>
int main(void)
{
int x, k;
int count=0;
for ( x=2 ; x<=100 ; x++)
{
for ( k=1 ; k<=x ; k++)
{
if ( x%k == 0)
count++;
}
if (count == 2)
printf("%d ", x);
count = 0;
}
printf("\n");
return 0;
}