My implementation of lcd numbers