#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
double number;
int count=0;
while(scanf("%lf",&number)!=EOF &&(number>=2&&number<=2147483647))
{
if(number==2)
printf("質數\n");
else{
for(double i=2;i<=(int)sqrt(number);i++){
if((int)number%(int)i==0 )
count++;
else
continue;
}
if(count==0 )
printf("質數\n");
else{
printf("非質數\n");
count=0;
}
}
}
return 0;
}
執行出來正確,但還是顯示CE,請各位高手幫我看一下吧