(Solved) : Goldbach Expectation Tells Even Number 4 Represented Sum Two Prime Numbers Correct Conside Q37208647 . . .


in c++ part of code is given follow instructionscarefully
Goldbach expectation tells that an even number of 4 or more can be represented by the sum of two prime numbers, which is correct up to a considerably large number by computer calculation. For example, 1b can be expressed as the + 5 sum of two prime numbers 7+3,3+7, and 5 Write a C++ program that verifies 10 random cases as shown in the supplied main program. You need to generate an addition with a minimum difference of two prime numbers and smaller (or same) + larger (same) such as 5+ 5 for the case of 10 (not 3+7) and 5+ 7 for 12 (not 2+ 11).Wisely apply ‘gen primes and is prime functions you developed earlier. For submission, set random seed as 1234 You can submit up to two times. il#include iostream» 2: #include <vector> 3#include astdlib> 4 using namespace std; 6 int main) 7 vectorcint> vp gen primes (500; 8for (inti 0 i < 10; ++1) t 9 10 int num rand() % 500; if (num 4) continue; number should be 4 or 1arger if (num % 2) ++num numbre should be even int smaller num / 2, larger num / 2; 12 13 14 cout numK< smaller <<< larger << endl; 16 cout <<“Bye.. << endl; ǐ returno; 18 Show transcribed image text Goldbach expectation tells that an even number of 4 or more can be represented by the sum of two prime numbers, which is correct up to a considerably large number by computer calculation. For example, 1b can be expressed as the + 5 sum of two prime numbers 7+3,3+7, and 5 Write a C++ program that verifies 10 random cases as shown in the supplied main program. You need to generate an addition with a minimum difference of two prime numbers and smaller (or same) + larger (same) such as 5+ 5 for the case of 10 (not 3+7) and 5+ 7 for 12 (not 2+ 11).Wisely apply ‘gen primes and is prime functions you developed earlier. For submission, set random seed as 1234 You can submit up to two times.
il#include iostream» 2: #include 3#include astdlib> 4 using namespace std; 6 int main) 7 vectorcint> vp gen primes (500; 8for (inti 0 i
Expert Answer
Answer to in c++ part of code is given follow instructions carefully…
OR