The sum of two prime numbers is 85. what is the product of these two prime numbers?

The sum of two prime numbers is 85. what is the product of these two prime numbers?

X = Suppose X is a prime number.

Y = Suppose Y is a prime number.

X+Y = 85

First See: 1 and 84: 1 is, not a prime number, 84 is not a prime number.

Now See 2 and 83: both numbers are prime numbers.

  • 3, 82
  • 4, 81
  • 5, 80
  • 6, 79, etc…

All even numbers are paired with a possible odd prime number,  therefore both won’t be prime numbers because the only even prime number is 2.

Similarly, If we count back, All evens from 80 then these are paired with possible odd primes numbers, however, the even numbers can’t be be considered as prime numbers.

The one and only one possible solution is the pair of two numbers and the numbers are 2 and 83 and the product of 2 and 83 is 166.

Let’s explain it some other helping material of prime numbers.

List of prime numbers

All prime numbers are illustrated with pink color circles.

The sum of two prime numbers is 85. what is the product of these two prime numbers

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

Sum of Prime number with classes

Let’s see a little demo with the C++ program that works on sum of prime numbers.

 

C++  program to Check Whether a Number can be Express as Sum of Two Prime Numbers by using the single inheritance.

C++  program to Check Whether a Number can be Express as Sum of Two Prime Numbers by using the multiple inheritances.

C++  program to Check Whether a Number can be Express as Sum of Two Prime Numbers by using the multi-level inheritance.

Hopefully, now if someone asks you that the sum of two prime numbers is 85, then you can easily calculate the product of 85.

 

Add a Comment