#include <math.h> #include <stdio.h> int main() { int a, b, c = 0; for(a = 100;a <= 200; a++) { c = 0; for(b = 2;b <= floor(a/2); b++) { if(a % b == 0)c = -1; } if(c == 0) printf("%d\n", a); } return 0; }