English, asked by lamchaokip5750, 10 months ago

here on earth our 24 hour day is composed of two parts, each of 12 hours.each hour in each part has a corresponding hour in other part separated by 12 hours.the hour essentially measures the duration since the start of the day part. for example, 1 hour in first part of the day is equivalent to 13. which is 1 hour in to second part of the day.
now consider the equivalent hours that are both prime numbers, we have 3 such instances for a 24 hours 2 part day 5~17
7~19
11~23 accept two natural numbers D,p>1

Answers

Answered by jameshul471
0

Answer:

Find all prime in O(n) then out it into TreeMap and then just take loop from first prime to end and look whethere prime+d/p is avaible in map or not .

please mark me as brainlest Pleazzzzzzz.

Similar questions