Virtual base class C++ Program to to Check Whether a Number can be Express as Sum of Two Prime Numbers

Write a program in C++  to Check Whether a Number can be Express as Sum of Two Prime Numbers by using the virtual base class in Object Oriented Programming.

Prime Number C++

Check-whether-a-number-can-be-express-as-sum-of-two-prime-numbers

Output

Program will check that the Number can be Express as Sum of Two Prime Numbers:

Input a positive integer:9

9 can not be expressed as sum of two prime numbers.

FAQ

Develope a program in C++  to Check Whether a Number can be Express as Sum of Two Prime Numbers by using the virtual base class and for loop and if else statement.