C++ Program with constructor destructor 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 using the constructor overloading and destructor.

Prime Number C++

 

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

C++ Program with constructor  to Check Whether a Number can be Express as Sum of Two Prime Numbers

Output

Check Whether a Number can be Express as Sum of Two Prime Numbers:input a positive integer:

5

can not be expressed as sum of two prime numbers.

C++ Program with destructor  to Check Whether a Number can be Express as Sum of Two Prime Numbers

C++ Program with constructor overloading to Check Whether a Number can be Express as Sum of Two Prime Numbers