#include<iostream>
#include<iomanip>
int counter = 0;
for (int n = 2; n <= 200; n++) {
//(1) check if n is prime or not
bool isPrime = true;
for (int k = 2; k <= n / 2; k++) {
if (n%k == 0) {
isPrime = false;
} // end if
} // end inner for
//(2) print n if n is prime
if (isPrime) {
cout << setw(5) << n;