Unless theres already an algorithm by a human already, chatgpt seems to give an abstraction. The real question is, can it become intelligent to form its own questions and solve them on its own? BTW, the following code doesnt work.