In nucleic acids, the primary element is phosphorus (P). Phosphorus is a vital part of the nucleotide subunits that make up nucleic acids, such as DNA and RNA. It forms the backbone structure and interacts with other molecules to facilitate genetic information storage and transmission.