Which of the following best describes the primary function of nucleic acids in biological organisms?
A) To provide structural support to cells
B) To store and transmit genetic information
C) To catalyze biochemical reactions
D) To transport nutrients across cell membranes