#include
char rec[101];
int main()
{
int i, j, count = 0;
for(i = 2; i <= 10; i++)
{
if(rec[i])continue;
for(j = 2; j * i <= 100; j++)rec[i * j] = 1;
}
for(i = 2; i <= 100; i++)
{
if(rec[i])continue;
printf("%d", i);
if((++count) % 5 == 0)printf("\n");
else
printf(" ");
}
return 0;
}