Question: Write a C++ Main code the generate random list of numbers. Your main code should test the prime numbers in the list by sending
Write a C++ Main code the generate random list of numbers. Your main code should test the prime numbers in the list by sending each number to bool Prime1(int k). Your code should also display how many primes are there. Your random list contains 20 numbers between 3 and 78. A sample run should look like this: sample run: 11 Prime 71 Prime 51 31 Prime 5 Prime 51 15 10 47 Prime 14 Number of prime numbers = 5
Step by Step Solution
There are 3 Steps involved in it
Heres a simple C main code that generates a random list of numbers b... View full answer
Get step-by-step solutions from verified subject matter experts
