帮我弄出sum
#include <math.h>#include <stdio.h>
float fun(float x)
{
float n,j;
float k;
scanf("%d",&n);
k=sqrt(n);
j=2;
while (j<k)
{
if(n/j==0) break;
j++;
}
if(j>=k+1)
return(x);
}
void main()
{
float y;
float sum=0,m,i;
printf("input a integer to y:");
scanf("%f",&y);
for(y=3;y<=100;y++)
{
i=fun(y);
m=sqrt(i);
sum=sum+m;
}
printf("sum=%f\n",sum);
}