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