Red de conocimiento informático - Material del sitio web - Almacene 20 números enteros en la matriz, cuente y genere el número de números primos en la matriz

Almacene 20 números enteros en la matriz, cuente y genere el número de números primos en la matriz

#includelt;stdio.hgt;

#includelt;stdlib.hgt;

#define N 20

int main()

{ int i, j, r=0, max=0, a[N], b[1000];

for(i=0; ilt; N; i)

{ scanf("d",amp;a[i]);

if(maxlt;a[i])max=a[i];

}

for(i=2;ilt;=max;i)

{ for(j=2;jlt;i;j)

{ if(ij==0 )romper; }

if(j==i)b[r ]=i

}

for(i=0; ilt; 20; i )

for(j=0;jlt;r;j )

si(a[i]==b[j]){printf("d tiene razón\n", a[i]); break;}

else;

system("pause");

return 0;

p>

}

Mira eso, mi compilador es dev, ¡no olvides sumar puntos si funciona!