I've heard of many functions of the prefrontal cortex (e.g. creativity, working memory, abstract thought, inhibition, planning, executive function, etc...).
But I'd like to know what its primary function is? For example is there any one function it has which facilitates all of its other functions? Or is there a known reason why it evolved in the first place?