Codeforces Noldbach problem
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<string> #include<bitset> #define sf scanf #define pf printf #define mx 1010 using namespace std; bitset<mx>bs; int prm[mx], plen=0; void sieve() { int i,j; bs.set(); bs[0]=bs[1]=0; for(i=2; i<mx; i++) { if(bs[i]) { prm[plen++] = i; for(j=i*i; j<mx; j+=i) { bs[j] = 0; } } ...