[求助]怎样判断素数??
#include<iostream.h>
int main()
{
int iNum, iFlag;
do{
cout<<"input a number(>0)";
cin >>iNum;
}while(iNum>0)
for(int i=2;i<=iNum;i++)
{
if(iNum%i==0)
_________________
}
if(________)
cout<<iNum<<"is prime number";
else
cout<<iNum<<"is not prime number";
return 0;
}怎样判断素数啊?补充完整!!!还有iFlag怎么用啊??还有所有的因子都要输出!!!