Having to fix the LLM’s recommended solution is a good exercise though.
It’s like being a smart-ass for the right reasons, without any social consequences.