Javascript (44 bytes) --------------------- Using a library I wrote to bring LINQ to Javascript, I was able to write the following: i + (i+"").length + _.From(i+"").Sum(x=>x|0) [![enter image description here][1]][1] [1]: https://i.sstatic.net/Hat03.png