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

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/13 07:01:46

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

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