#include <iostream.h>

bool l[320];

void main (void) {
 int start = 2;
 for (int lcv=0;lcv<320;lcv++) l[lcv] = true;
 while (start < 320) {
   if (l[start]) {
     cout << start << ", ";
     for (int lcv=start;lcv<320;lcv+=start) l[lcv]=false;
   }
   start++;
 }
}
