The primary function of carbohydrates in the human body is to provide energy, especially for the brain and muscles. Other nutrients, such as calcium and vitamin D, are responsible for bone strength, while vitamin A is crucial for vision in dim light.