//求Max----Min之间的素数,具体在本程序中是求100---200之间的素数
#include <iostream.h>
#include<math.h>
#include<iomanip.h>
const int Max=200;
const int Min=100;
void main()
{
int i,j,k;
for(i=Min;i<=Max;i++)
{
k=sqrt(i);
for(j=2;j<=k;j++)
if(i%j==0)
break;
if(j>=k+1)
cout<<i<<setw(5);
}
}