                   Sample, Scrutinize and Scale: Effective Inference-Time Search by Scaling Verification





   show that there is at least one prime number p such that ¡missing 33¿. Since we have two consecutive factors of

   ¡missing 34¿ and a prime number between the smaller of these factors and n, the condition will not be satisfied for

   all even ¡missing 35¿.

   Therefore, the only numbers that work are n = 3 and ¡missing 36¿.

   The formulae are:

      • ¡expression 1¿ n = 6



      • ¡expression 2¿ n = 5

      • ¡expression 3¿ 3!

      • ¡expression 4¿ k + 1

        ... (omitted for brevity)



      • ¡expression 33¿ n < p < n2 − 4n + 3

      • ¡expression 34¿ p > n

      • ¡expression 35¿ n < p < n2 − 2n

      • ¡expression 36¿ n = 4



   Your final answer should be STRICTLY in the format:

   Detailed reasoning

   Answer: ¡comma separated list of numbers representing expression identifiers¿





C. Additional Technical Details

C.1. Inference Prompts

For questions from the MATH and AIME benchmarks, we use the following prompt.



   MATH and AIME Prompt



   Please answer the following question. Think carefully and in a step-by-step fashion. At the end of your solution, put

   your final result in a boxed environment, e.g. 42 .

   The question would be here.



For questions from the LiveBench Math and LiveBench Reasoning benchmarks, which already come with their own

instructions and formatting requests, we do not provide any accompanying prompt and simply submit the model the question

verbatim.



   LiveBench Prompt



   The question would be here.





C.2. LM-Based Scoring

Given a tuple consisting of a question, ground-truth solution, and candidate response, we grade the correctness of the

candidate response by querying a Gemini-v1.5-Pro-002 model to compare the candidate and ground-truth solutions.

This involves repeating the following process five times: (1) send a prompt to the model that provides the question,

the correct ground-truth solution, and the candidate response, and asks the model to deliberate on the correctness of

the candidate response; and (2) send a followup prompt to the model to obtain a correctness ruling in a structured

format. If a strict majority of (valid) responses to the second prompt evaluate to a JSON object with the key-value pair

 “student final answer is correct” = True rather than “student final answer is correct” = False , the candidate response



                                                            18

