← All Articles

Prompt Engineering to Generate Code to Solve a Math Problem

My 12-year-old solved a math puzzle faster than I could. So I wrote a prompt to have GPT-4 generate Python code to solve it. The prompt, the algorithm selection

· 6 min read