24 game/Solve: Difference between revisions

→‎Minimal version: The Prolog output works because // is integer division, meaning 2//9 rounds down to 0, and (3*8)-0 is 24. Also fixed typo
(→‎Minimal version: The Prolog output works because // is integer division, meaning 2//9 rounds down to 0, and (3*8)-0 is 24. Also fixed typo)
Line 5,587:
</pre>
===Minimal version===
{{incorrect|Prolog|No matter how I parse it, I can see how 3*8-2//9 evaluates to 24}}
{{Works with|GNU Prolog|1.4.4}}
Little efforts to remove dublicatesduplicates (e.g. output for [4,6,9,9]).
<lang prolog>:- initialization(main).