Random Post
Recent Posts
Recent Comments
Archives
Categories
- amusements-book-1917 (1)
- article (11)
- braintwister (110)
- enigma (1,792)
- enigma-book-1982 (70)
- headscratchers-book-2023 (70)
- microteasers-book-1986 (11)
- misc (8)
- project euler (2)
- puzzle (90)
- puzzle# (249)
- site news (87)
- sphinx (17)
- tantalizer (308)
- tantalizer-book-1970 (84)
- teaser (7)
- today (1)
Site Stats
- 400,758 hits

Here is a solution using the [[
SubstitutedExpression]] solver from the enigma.py library.It runs in 78ms. (Internal runtime of the generate code is 801µs).
#! python3 -m enigma -rr SubstitutedExpression # square root extraction: # # x B y # ----------- # \/ a b c d A # e # - # f b c # g h # ----- # i d A # i d A # ===== --distinct="AB" --invalid="0,aefgix" "sq({xBy}) = {abcdA}" "sqrx(0, {x}) = {e}" "{a} - {e} = {f}" "sqrx({x}, {B}) = {gh}" "{fbc} - {gh} = {i}" "sqrx({xB}, {y}) = {idA}" --answer="{abcdA}" --output="lambda p, s, ans: output_sqrx(ans, pre=' ', start='', end='')"Solution: The extraction is: √20449 = 143.