#include<stdio.h>
int main()
{ int a, b; for (a = 2; a <= 10; a++) { for (b = 2; b <= a; b++) { if (a%b == 0) continue; else printf("%d\t", a); } } return 0;
}
int main()
{ int a, b; printf("2\n"); for (a = 3; a <= 10; a++) { for (b = 2; b <= a-1; b++) { if (a%b == 0) { b++; break; } else if(b==a-1) printf("%d\n",a); } }