I didn't see any reference in my output. What LLM do you mean? Pretty sure this is "new" code (of course output like this is never really "new").
Of course this is to be fair an easier type of task than "implement an algorithm to do X" - the algorithm is already prescribed, it "only" has to "understand" it.