#include<stdio.h>
#include<stdlib.h>
int main(){
int a, b;
for (a = 100; a <= 200; a++){
for (b = 2; b < a; b++){
if (a%b == 0)break;
}
if (b >= a)
printf("%d\n", a);
}
system("pause");
return 0;
}#include<stdio.h>
#include<stdlib.h>
int main(){
int a, b;
for (a = 100; a <= 200; a++){
for (b = 2; b < a; b++){
if (a%b == 0)break;
}
if (b >= a)
printf("%d\n", a);
}
system("pause");
return 0;
}blog