The first problem is addition. Given 3 + 3, give back 6. The arithmetic is not the hard part. Yet this is where most first time visitors get stuck. What blocks them is not the addition. It is not knowing what shape your prompt arrives in at the model.
A model does not answer questions
Start here. A language model is not a machine that takes a question and answers it. It is a machine that predicts the next character. The chatbots we use every day only look like they answer questions because a frame has been wrapped around them to make it look that way.
This problem has that frame taken off. That is what raw mode means. To the model, what you wrote is just a piece of text it has to carry on.
Three pieces are joined as they are
The solving panel has two boxes, pre_prompt and post_prompt. At judging time the case input is slotted between them. That is all that happens.
pre_prompt + input + post_prompt
No newline and no space is added for you. It is joined exactly as written. So whether you put a newline at the end of pre_prompt changes the result. Open the full prompt below the solving panel and you see the joined text as you type. Write while watching it.
So what should you write
If the model is a machine that carries text on, then give it a shape it wants to carry on. Instead of writing instructions the way you would explain to a person, show a few examples with the answers already filled in and let it continue in the same shape.
7 + 2 = 9 4 + 10 = 14 3 + 3 =
The first two lines show the rule: after X + Y = comes the answer. The last line stops at 3 + 3 = . The model tries to finish that line, and finishing it gives 6.
Show examples and cut off instead of writing instructions. This works best of all in raw mode.
Why post_prompt is ` = `
Leave post_prompt empty and the full prompt ends at 3 + 3. The model can read that line as unfinished and carry the expression on, say + 5 = 11. Write out = and you have built a spot where the only thing that can come next is the answer.
The single trailing space is deliberate too. Written tight against the =, the model can produce =6. With the space it produces 6 more readily. Things this small decide the result.
Try it yourself
Copy the sample answer below, paste it into the problem, and judge it.
Once it passes, delete the trailing space in
post_promptand see what changes.Cut the examples down to one line, then remove them entirely. See how few lines it takes before it falls apart.