Number required after Prime Numbers addition

I have to write a code in which the addition of prime number gives the number user input..
for example if user enters 10 then

7+3 = 10
2+3+5 = 10

Last edited on
Try to do it yourself, and come back if you get problems you can't solve on your own.
The only thing I cannot understand is that how to make those pairs other than these I have found the prime numbers in an array and with these prime numbers I am unable to make the pairs....
Topic archived. No new replies allowed.