The compound which has only primary and tertiary carbons are
2,3-dimethyl butane
1 2 3 4
CH3 − CH|CH3 − CH|CH3 − CH3
Carbons labelled 2 & 3 are tertiary carbons, it is carbon attached with 3 other carbon atoms and rest of the carbons are primary in nature.