This is tricky. I can do evens fine.
First I'd have a list of prime numbers from (2-10000000).
Ok, now I have to look at the input and figure out how to get 4 primes out of it.
If the inputer = even integer I'd use this process:
I'd divide by 2 and work in chunks. Using conjectures will help here.
Example: Input 1000
Divide by 2=500
Hm well that is a rather large even number, but using Goldbachs Conjecture, I know there has to be two numbers that are prime that add up to 500. Using the list of Prime numbers, I would work backwards from 500 down. Selecting from a pool of x < 500 starting from the number closets to 500, I would select 499. I would then subtract this from 500, then see if the result was a prime number. 500-499=1, nope didn't work. If it were not I'd keep going down the list, next is 491. 500-491=9, nope. Next is 487. 500-487=13. Bingo! So from there, I know 487-13-487-13 works.
Example: Input 52
Divide by 2 = 26 Two sets of 26, but 26 is even, not a prime.
Here I would use Goldbach's Conjecture, and note that 26 has to be made up of two primes. From the list of prime numbers, I can figure out that 13+13 is infact 26.
From here I now know that 13-13-13-13 works.
Example: Input 14
Divide by 2 = 7 So two sets of seven make up 14.
Using Goldbach, I know that 7 has two prime numbers that make it up. Using my handy method of using a set list, I would choose the number closets to 7 from the left, which is 5, subtract that from 7, I get 2. 2 = prime 5 = prime. So 2-5-2-5
For odd that seems tricky, because "Waring's prime number conjecture, it states that every odd integer is either prime or the sum of three primes." Well, if it is only a sum of 3 primes how can you get 4 out of it?
My guess is since 2 is a special prime, you could subtract that at the beginning and still end up with an odd. 69-2 = 67. From there you can figure out the 3 that make up 67 and then add 2. I just don't know how to do that yet, I'll think and post back.