Beruflich Dokumente
Kultur Dokumente
h>
int main()
{
int i,c,prime_count=0,count;
for(i=1;i<=100;i++)
{
count=0;
for(c=1;c<=i;c++)
if(i%c==0)
count++;
if(count==2)
{
printf("%d ", i);
prime_count++;
if(prime_count>=10&&prime_count%10==0)
printf("\n");
}
}
printf("\nprime number is= %d", prime_count);
}