One million to three million islets of Langerhans ( pancreatic islets ) form the endocrine part of the pancreas , which is primarily an exocrine gland .
The islets of Langerhans in the pancreas produces insulin .