by poopbutt7 · 3y ago · 0 comments
This question is a pretty obscure benchmark. Another commenter has it just printing the string, as suggested.
If there's some weird math trick to get an optimal implementation, it's probably beyond the grasp of nearly all actual people.
"If you modify it, it will give the correct answer"
This is the problem with these systems: "roughly correct, but not quite, and ends up with the wrong answer". In the case of a simple program that's easy to spot and correct for (assuming you already know to program well – I fear for students) but in more soft topics that's a lot harder. When I see people post "GPT-4 summarized the post as [...]" it may be correct, or it may have missed one vital paragraph or piece of nuance which would drastically alter the argument.