A shorter golfed version.
Make Norvig's submission work with the test script. (It was skipped, plus it would fail without the #!.)