Question: In C++, what is the answer to this question: Complete the following method that returns a vector with the first n prime numbers. For example,
In C++, what is the answer to this question:

Complete the following method that returns a vector with the first n prime numbers. For example, if n = 7, this method should return a vector with values 1, 2, 3, 5,7, 11,13}. using IntVec - std::vector int>; IntVec getPrimes(int n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
