+Gsum=l48.874270o\r#include<stdio.h>\rdoublefun(intn)\r{intiJ=0;doubles=0;\rfor(i=3;i<=n;i++)\r{for(j=2;j<=i;j++)\rif(i%j==0)break;\rif(j==i)s=s+sqrt(i);}\rreturns;\r}\rmain()\r{intn;doublesum;\rprintf(M\n\nInputn:")<scanf("%d",&n);\rsum=fun(n);\rprintf(,*\n\nsum=%f\n\n,,,sum);}\r100.?-.)*fun,@AB%:DEF+G\rS=l+(l+2p0.5)+(1+2p0.5+3q0.5)+......+(1+2Ao.5+3p0.5+........+M0.5)\r0()*`abHn+,20"0@+Gs=534.188884\r#include<math.h>\r#include<stdio.h>\rdoublefun(intn)\r{inti;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rdoubles=0.0,sl=0.0;\rfor(i=l;i<=n;i++)\r{sl=sl+pow(i,0.5);\rs=s+sl;}\rreturns;\r}\rmain()\r(\rFILE*wf;\rintn;\rdoubles;\rprintf(n\n\nlnputn:”)<\rscanff%dn,&n);\rs=fun(n);\rprintf(n\n\ns=%f\n\nM,s);\rwf=fbpen(,,out.dat,,,,,wn);\rfprintf(wf<,%f,,fun(20));\rfclose(wf);