标签:io sp for bs nbsp print br 500 include
#include<stdio.h>
#include<math.h>
main()
{
int i,j;
float a,m=0;
for(i=2;i<=500;i++)
{
for(j=2;j<=i;j++)
{
if(i%j==0)
break;
}
if(i==j)
{
a=sqrt(i);
m=m+a;
}
}
printf("所有质数的平方和为%f\n",m);
}
标签:io sp for bs nbsp print br 500 include
原文地址:http://www.cnblogs.com/Forever-B/p/4115955.html