3 ms·
I explored this technique applied to a few other problems just for fun, integer square root, coprimes, continued fractions, modulo, etc. https://github.com/fxn
by fxn 12y ago
I explored this technique applied to a few other problems just for fun, integer square root, coprimes, continued fractions, modulo, etc.
https://github.com/fxn/math-with-regexps/blob/master/one-liners.sh https://github.com/fxn/math-with-regexps/blob/master/one-lin...