The primary function of egg yolk is to provide nutrition and energy for the developing embryo inside the egg. It contains essential nutrients such as proteins, fats, vitamins, and minerals that are necessary for the growth and development of the chick.