Hire people better than you
That’s the only thing that makes sense
The role of the CTO isn’t necessarily to be the all-knowing programmer. Instead, it’s up to the CTO to make sure that the product is built in the right way.
This means there’s less coding and more designing, documenting, and communicating. All those require a great deal of knowledge, but also a good understanding of business goals and other concepts most programmers would much rather leave behind.