#include<stdio.h>
#include<math.h>
void main()
{
int i,j,h=0;
int leap=1;
for(i=1;i<=100;i++)
{
int k=sqrt(i+1);
for(j=2;j<=k;j++)
if (i%j==0)
{ leap=0;
break;
}
if (leap)
{
printf("%-4d",i);
h++;
if(h%10==0)
printf("\n");
}
leap=1;
}
printf("total is %d\n",h);
}