include <stdio.h> include <math.h> int isPrime(int n) { if (n==2 || n==3) return 1;for (int i=2;i<=sqrt(n);i++) { if (n%i==0) return 0;} return 1;} int main() { int i,j=0;for (i=100;i<1000;i++) { if (isPrime(i)) { printf("%4d", i);...
void main() { int i,j,b,n;for ( i=100,n=0;i<1000;i++ ) { b=1; for ( j=2;j<=i/2;j++ ) if ( i%j==0 ) {b=0;break;} if ( b!=0 ) { printf("%d ",i); n++; if ( n%8==7 ) printf("\n");} printf("\n");} ...