用c语言判断一个数是否为素数

来源:学生学帮网 编辑:学帮网 时间:2024/05/28 07:17:39

用c语言判断一个数是否为素数

main()
{ int x;
int i,f;
f=0;
scanf("%d",&x);
for(i=2;i