Full threadtbensky·Fun exercise in Prolog too: https://www.codebymath.com/index.php/welcome/lesson/prolog-d....View on HN