I have been tasked with writing a program that allows a user to input a lower bound and an upper bound so the program can show that every even number between the two is the sum of two primes.
I.E.
4 = 2 + 2
6 = 3 + 3
I have written a program that determines whether a number is prime but I'm not really sure how to get the two primes that add up to a given number. Any ideas?
In other words, I know how to show the even numbers, I just don't know how to approach displaying the two primes.