#include<iostream>
using namespace std;
int main(){
int a,b,C,;
float c;
while(cin>>c){ a=2;
C=c;
while((C%a)!=0){a=a+1;}
if(a!=C){cout<<"非質數"<<endl;}
else{cout<<"質數"<<endl;}
}
system("pause");
return 0;
}
哪位大大可以幫我看...