Elegant solution to problem 40: Champernowne's constant.