100-1000素数之和-查字典问答网
分类选择

来自黄西孟的问题

  100-1000素数之和

  100-1000素数之和

1回答
2020-12-2702:13
我要回答
提示:回答问题需要登录哦!
陈志伟

  pascal:

  var

  s,i,x,t:longint;

  begin

  s:=0;

  forx:=100to1000dobegin

  t:=0;

  fori:=1toxdoifxmodi=0thent:=t+1;

  ift=2thens:=s+x;

  end;

  writeln('S=',s);

  end.

2020-12-27 02:15:15
大家都在问
最新问答