What is the primary function of the small intestines?

The primary function of the small intestines is to absorb nutrients from food and pass them into the bloodstream.