1#include <iostream>
2using namespace std;
3
4int main () {
5 int i, j;
6
7 for(i = 2; i<100; i++) {
8 for(j = 2; j <= (i/j); j++)
9 if(!(i%j)) break; // if factor found, not prime
10 if(j > (i/j)) cout << i << " is prime\n";
11 }
12
13 return 0;
14}