#include<stdio.h>
int main(void)
{
int x;
//scanf("%d",&x);
x=6;
for(x = 2;x<100;x++)
{
int i;
int isPrime=1;// x是素数
for(i=2;i<x;i++){
if(x%i==0){
isPrime=0;
break;
}
}
if(isPrime==1){
printf("%d",x);
}
}
printf("\n");
return 0
}
标签:以内,int,素数,printf,100,isPrime From: https://www.cnblogs.com/t0326/p/17099594.html