Computer Science, asked by praveenerusu777, 6 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 the other part separated by 12 hours: the hour essentially measures the duration since the start of the day part. For example, 1 hour in the first part of the day is equivalent to 13, which is 1 hour into the second part of the day

Answers

Answered by vrundpatel99240
28

Answer:

Explanation:

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 .

Be Happy

Similar questions