ADV04L - first attempt
ADV04L - second attempt

It seems like handling "1" this way is acceptable, but this still isn't fast
enough.  Converting to C++.
ADV04L - solution

C++ is fast enough.