游戏地址:http://monyer.com/game/game1/
游戏还蛮好玩的,有兴趣的同学可以玩玩~
攻略建议仅作参考,这东西跟藏猫猫差不多,偷眼看总是很没意思的
通关攻略:http://hi.baidu.com/monyer/item/c75ab110fa7a86f89d778a78
下面贴一下自己写算素数和的C代码
#include<stdio.h>
#define N 10000
void main(){
char XX[N]="";
XX[2]=0;
int i=2,j=2;
while(i<N/2){
if (XX[i]==0){
while(i*j<N){
XX[i*j]=1;
j++;
}
j=2;
}
i++;
}
int count=0;
for (int x=2;x<N;x++){
if (XX[x]==0)
count+=x;
}
printf("%d",count);
}
最后求和为: 5736396