>1+2+3+4+5+6+9+10=40
>1+2+3+4+5+7+8+10=40
>1+2+3+4+6+7+8+9=40
>1+2+3+7+8+9+10=40
>1+2+4+6+8+9+10=40
>1+2+5+6+7+9+10=40
>1+3+4+5+8+9+10=40
>1+3+4+6+7+9+10=40
>1+3+5+6+7+8+10=40
>1+4+5+6+7+8+9=40
>2+3+4+5+7+9+10=40
>2+3+4+6+7+8+10=40
>2+3+5+6+7+8+9=40
>1+5+7+8+9+10=40
>2+4+7+8+9+10=40
>2+5+6+8+9+10=40
>3+4+6+8+9+10=40
>3+5+6+7+9+10=40
>4+5+6+7+8+10=40
>6+7+8+9+10=40
>
>What do you see missing here?
Those are only integers > 0. What Marvin needs is not integers, but rather flexible code that will sum up all combinations from any given list of data (like the data Marvin first posted).
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.