LLMs can do this to some degree but struggle more than humans, unless they are given many in-context examples (and even then sometimes), and definitely have problems executing algorithms given in prompts.

Comments