RosettaCodeData/Task/Sum-to-100/Mathematica/sum-to-100-4.math
2023-07-01 13:44:08 -04:00

2 lines
81 B
Text

pos = Cases[ToExpression@sums, _?Positive];
n = 1; While[MemberQ[pos, n], ++n];