To all others: if you get '229+229+271+271' as answer for '1000 4', then you made the same mistake as I did; the correct answer is '131+283+293+293'.
![:cry:](./images/smilies/icon_cry.gif)
Moderator: Board moderators
output:32 3
79 1
79 2
79 3
79 4
1000 1
100 2
1000 2
1000 3
1000 4
1000 5
1000 6
1000 8
1000 9
1000 13
999 13
998 13
47 5
91 4
140 6
199 13
267 11
301 5
444 7
611 9
789 11
921 5
1000 14
500 13
17 1
9 3
147 3
233 11
500 13
1 0
1 1
1 2
561 3
561 5
561 10
561 13
6 2
6 3
6 4
3 1
3 2
9 3
0 0
CASE 1:
11+19+2
CASE 2:
79
CASE 3:
No Solution.
CASE 4:
11+31+37
CASE 5:
11+13+2+53
CASE 6:
No Solution.
CASE 7:
11+89
CASE 8:
No Solution.
CASE 9:
No Solution.
CASE 10:
131+283+293+293
CASE 11:
131+2+281+293+293
CASE 12:
101+101+103+109+293+293
CASE 13:
101+101+103+103+107+107+109+269
CASE 14:
101+101+103+103+107+107+113+2+263
CASE 15:
101+101+103+103+107+107+109+109+11+11+113+2+23
CASE 16:
101+101+103+103+107+107+109+109+11+11+113+17+7
CASE 17:
101+101+103+103+107+107+109+109+11+11+127+2+7
CASE 18:
11+11+13+5+7
CASE 19:
11+11+2+67
CASE 20:
101+11+11+3+7+7
CASE 21:
11+11+13+13+17+17+19+19+23+3+3+43+7
CASE 22:
101+101+11+11+13+3+3+5+5+7+7
CASE 23:
101+101+11+17+71
CASE 24:
101+101+103+103+11+2+23
CASE 25:
101+101+103+103+107+11+11+13+61
CASE 26:
101+101+103+103+107+107+109+11+11+13+23
CASE 27:
101+101+149+277+293
CASE 28:
101+101+103+103+107+107+109+109+11+11+113+13+5+7
CASE 29:
101+101+103+103+11+11+13+13+17+17+2+3+5
CASE 30:
17
CASE 31:
No Solution.
CASE 32:
101+17+29
CASE 33:
101+11+11+13+13+17+17+19+19+5+7
CASE 34:
101+101+103+103+11+11+13+13+17+17+2+3+5
CASE 35:
No Solution.
CASE 36:
No Solution.
CASE 37:
No Solution.
CASE 38:
101+167+293
CASE 39:
101+101+103+107+149
CASE 40:
101+101+103+103+107+11+11+17+2+5
CASE 41:
101+101+103+103+11+11+13+13+17+17+19+23+29
CASE 42:
3+3
CASE 43:
No Solution.
CASE 44:
No Solution.
CASE 45:
3
CASE 46:
No Solution.
CASE 47:
No Solution.