by dakiol · 3y ago · 0 comments
Like the prime number finder - it’s not calculating primes, it is recognizing the ‘shape’ of a prime number finding algorithm and it know what that looks like as an output.
Well, if I ask it: “Write a Python program that reads a space-separated list of integers from stdin and returns the sum of their squares.” It does so (with explanations, sample input, and sample output. Now, that could be gotten from the internet, maybe.
If I then ask it to tell me the output of the program with a particular input string, it does so, with explanations of the calculation steps in the program to get to the result. It seems…improbable…that it is fetching those responses from somewhere on the internet or its training set.