Perhaps these examples was too easy (or small) and/or has been seen by GPT already, but it I'm quite impressed by GPT4. For some problem it nailed the solution directly (or with a few hints), but for some problems it didn't get it at all.
The initial prompt for the GPT4-session was the following:
I want you to act as an expert in for example computer programming, mathematics,
pattern recognition, induction logic programming, program synthesis and related
topics. I will show you examples of inputs and corresponding outputs and you will
generate Python3 code for generating the output from the input. Acknowledge with "OK.".
Here are the experiments so far, mostly in date order :