Most people live by the wrong algorithm.
They spend their career focused on how to accumulate resources for themselves.
But obviously the people who are rabidly obsessed with creating value for others are the ones that society rewards* the most.
*Assuming capitalism. Under socialism, you’re shit out of luck.