The chemical reactions and pathways resulting in the formation of cytidine 5'-triphosphate (CTP) from simpler components.