#include<stdio.h>
#include<math.h>
int main()
{
    int count,m,n,i;
    count=0;
    for(m=200;m<300;m++)
    {
        n=sqrt(m);
        for(i=2;i<=n;i++)
          if(m%i==0)
            break;
        if(i>n)
        {
            count++;
            if(count%8==1)
            printf("%3d",m);
            if(count%8!=1)
            printf("%4d",m);
            if(count%8==0)
            printf("\n");
        } 
    }
    printf("\n");
    return 0;    
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-12-06
  • 2022-01-09
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案