By using each of the digits from the set, , exactly once, and making use of the four arithmetic operations () and brackets/parentheses, it is possible to form different positive integer targets.
For example,
Note that concatenations of the digits, like , are not allowed.
Using the set, , it is possible to obtain thirty-one different target numbers of which is the maximum, and each of the numbers to can be obtained before encountering the first non-expressible number.
Find the set of four distinct digits, , for which the longest set of consecutive positive integers, to , can be obtained, giving your answer as a string: abcd.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.