For those wondering, this works in every base ≥ 5, according to the original paper: https://arxiv.org/abs/1602.06208v2
Every time I see something like this that is dependent on base-10 representation, I'm always curious to know whether it generalizes, or if it's a quirk specific to base-10 representation. For example, being able to tell if a number is divisible by 2 or 5 by only looking at the last digit.