Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-sonnet-4-20250514-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

print something in brainfuck

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Googlegemma-3n-e4b-it’s answer.
  1. User

    print something in brainfuck

  2. Claude Assistant

    Here's a Brainfuck program that prints "Hello World!":

    ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
    

    And here's a simpler one that just prints "Hi":

    +++++++++[>++++++++<-]>.>++++++++++[>++++++++++<-]>+++++.
    

    Brainfuck uses only 8 commands:

    • + increment current cell
    • - decrement current cell
    • > move pointer right
    • < move pointer left
    • [ start loop if current cell is non-zero
    • ] end loop, jump back to [ if current cell is non-zero
    • . output current cell as ASCII character
    • , input character to current cell

    The programs work by building up ASCII values in memory cells and then outputting them as characters.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.