I got it to write code with an obvious bug. It was an interview problem I've given in the past, with a very clear problem statement. I don't think chat GPT has an extremely nuanced understanding of logic. It's just AI. It's only as good as