>>141
#include<stdio.h>
main()
{
 int a,b;
 for(a=2;a<1000;a++){
  for(b=2;b<a;b++){
   if(a%b==0) goto boke;
  }
  printf("%d\n",a);
 boke: ;
 }
}