bool is_prime (const vector & primes, int num){ for (const auto& prime : primes) { if (num % prime == 0) { return false; } } return true;}vectorget_primes (const int32_t& num){ vector primes; primes.push_back (2); int32_t vec_size = 1; for (int32_t i = 3; vec_size != num; i += 2) { if (is_prime (primes, i)) { primes.push_back (i); ++vec_size; } } return move (primes);}