#include #include static bool NOTPRIME = false, PRIME = true; void boolsieve(std::vector & b, unsigned n) { b.reserve(n); for(unsigned i=0;i vec; boolsieve(vec, x); unsigned long long cnt = 0; for(unsigned i = 0; i < x; i++) if(vec[i] == PRIME) cnt++; return cnt; }