Precisely. It was the first solution I came up with after reading the title. It's perfect in that all the subtleties are already handled by the language. Digit length of base10 numbers isn't really a logic/math/computer problem, it's a string and writing convention problem.