void operator()( const tbb::blocked_range<Number>& r ) const { for( Number i=r.begin(); i!=r.end(); ++i ) { if( i%2 && is_prime(i) ) { Primes[Primes.grow_by(1)] = i; } } }
void operator()( const tbb::blocked_range<Number>& r ) const { for( Number i=r.begin(); i!=r.end(); ++i ) { if( i%2 && is_prime(i) ) { #if TBB_DEPRECATED Primes[Primes.grow_by(1)] = i; #else Primes.push_back( i ); #endif } } }