Question: using C++ Write a function that will compute and store all the prime numbers up to 50,000 in an array like structure. The function cannot
using C++
Write a function that will compute and store all the prime numbers up to 50,000 in an array like structure. The function cannot use STL, and cannot allocate more than the numbers of primes. It will print these values on the screen and at the end release all the memory used. (You need to use dynamic allocation)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
