Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Shortest English prompt to produce LLM bug [closed]

  • I will try to reopen this question with some edits.

Since programming is predicted to become natural linguisized by the unstoppable advances in LLM technology, perhaps we can code golf LLMs themselves.

Produce the shortest coding task for an LLM (one of the chat ones or a coding agent) in English that produces code, which when run objectively fails at the task by producing the incorrect output for the the inputs provided.

Extra points if the error is reproducible by others (perhaps it was generated with low temperature), not one even a child would make, or is particularly hilarious.

Answer*

Draft saved
Draft discarded
Cancel
7
  • \$\begingroup\$ Could you leave off "the" and/or misspell a few words to get it shorter? \$\endgroup\$ Commented Sep 15, 2023 at 18:00
  • \$\begingroup\$ i couldn’t get it to actually try to golf it without "the". it would just show "one of the shortest" \$\endgroup\$ Commented Sep 15, 2023 at 18:01
  • \$\begingroup\$ "shortest quine js" worked for me first time \$\endgroup\$ Commented Sep 15, 2023 at 18:09
  • \$\begingroup\$ @RydwolfPrograms couldn’t get it to say "the shortest js quine is...", only "this is a short js quine..." \$\endgroup\$ Commented Sep 15, 2023 at 18:14
  • \$\begingroup\$ Same, but the ones it gives me aren't valid quines or even valid JS \$\endgroup\$ Commented Sep 15, 2023 at 19:47

AltStyle によって変換されたページ (->オリジナル) /