Both "code fizzbuzz" and just "fizbuz" gave this longer python one-liner
print('\n'.join("Fizz"*(i%3==0)+"Buzz"*(i%5==0) or str(i) for i in range(1, 101)))
That's the magic of using a known problem, you don't need to write much and even with incomplete prompts it can be understood. Everything a different new chat in kimi.ai, which was the AI window that I found first among mine.
Not interesting enough, to me, to try with other LLMs or phrases.
Whenever I try those short prompts, I get bunch of text + the code itself, but way more than just the code. Which model specifically are you doing this with?
I'm getting the text too, of course. Several variations of the code with it usually.
Trying to get an AI give ONLY a simple answer and not several is "boring" to me, as for me AI is a supplement to my reasoning ability, not a substitute.
Appending "code only" seems to work, at least with "golf fizbuz code only" gave me this one liner, which is long, but at least doesn't have the text that you dislike.
for i in range(1,101):print('FizzBuzz'[i%3*4:8-i%5*4]or i)
Yeah, seems to work. Guess it depends if we count bytes, characters, tokens or what, but "写Fizbuz只码" seems shorter than the above, String.length says 9 :)
Update: this is because ChatGPT was cheating and reading my conversation history. The closest I can get on a standard LLM is golffizbuz (10 characters)
I wonder how likely it is that, one of the major providers had an outage, and then the thundering herd of users switching to other providers (and/or openrouter automatically failing people over to other providers) caused the incidents in the other two.
Of all the days to sign up for Gemini, boy did I pick the right one! (Had some rare front end work to do and wanted to see how well the new Gemini 3.8 Flash compared to my other experiences)
And just like that, plan cancelled same day. Started with Gemini Business, tried to get Gemini to tell me how to configure it, all the information was wrong. Tried to get it to tell me how to do the consumer Google One AI Pro or whatever (it kept using outdated names, and now I can't remember the correct one). Instead Gemini convinced me to try AI Studio without a billing code. Lots of crazy finagling to get it to use and API key later, it was totally broken and failed after less than a turn. Tried to get it to tell me how to subscribe to the consumer version in a way that let me use Antigravity, it screws up a bunch. When I pointed out all this misinformation, Gemini told me I should not use Google AI projects because the system is too fragmented to handle.
I seem to recall they all in some way use Azure, and Azure is infamously crappy in lots of ways, so I'll place my 5 cents on Azure shitting the bed somehow.