In this code golf question, there is a python answer that encodes the lengths of all integers from 1 to 99 in english to a big number:
7886778663788677866389978897746775667552677566755267756675527886778663788677866355644553301220112001
To get the length of n
, you just have to calculate 3 + (the_big_number / (10**n)) % 10
. How does this work?