Skip to content

Instantly share code, notes, and snippets.

@oguz-ismail
Last active September 14, 2023 11:33
Show Gist options
  • Save oguz-ismail/fafb90cd4aa0bf9f39bb78a60d4f65e8 to your computer and use it in GitHub Desktop.
Save oguz-ismail/fafb90cd4aa0bf9f39bb78a60d4f65e8 to your computer and use it in GitHub Desktop.
# header
for d in 7 42 77 101 121 1001 1111 7512 12345 110000 902180; do
n=0
# code (124 bytes)
f()for e do case $e in *==*=*|*[!0-9]0[0-9]*);;*=*)((n+=e));esac done;h=${d%?};eval "f ${h//?/&{+,-,*,==,\}}${d#$h}";echo $n
# footer
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment