Amazon | Telephonic Round | SDE - 2
Anonymous User
2704

Given an even number (greater than 2), return two prime numbers whose sum will be equal to given number. There are several combinations possible. Print only first such pair.

Input : 8
Output : (3,5)

Follow Up : Print all pairs that sum up to the input number.

Comments (15)