ChatGPT is a conversational bot, it's not built for logic. It's extremely easy to add a python interpreter, web search, etc., in the middle to get much better results. Have you seen any of the Bing AI preview threads yet? It's basically Chat