In this article

Anthropic’s released performance take-home is useful preparation for reading unfamiliar machinery and improving code under constraints. Start by preserving the contract, then build evidence for each change. This guide uses an original, smaller exercise to rehearse that process.

What the public challenge tells you

Anthropic’s January 21, 2026 account describes a performance-engineering assessment built around a simulated accelerator and explains why the team revised it as models improved. The released repository is a historical version, not a statement of the current private interview task. Treat it as a practice resource. Anthropic: Designing AI-resistant technical evaluations

The repository measures simulated cycles and warns against modifying the tests or changing fixed machine assumptions. Read its current instructions before starting, including the submission test command. A lower number obtained by weakening those constraints is not evidence of a better solution. Anthropic: original performance take-home repository

For preparation, write down the observable input and output, the allowed edits, and the scoring unit before studying clever transformations. That short note prevents a common failure: producing something impressive that solves a different problem. Keep a baseline checkout so you can distinguish your own changes from the supplied harness.

    Check AI permission for the specific assessment

    The public challenge is discussed in an AI-assisted setting, but that does not establish permission across Anthropic interviews. Its candidate guidance says to complete take-home assessments without Claude unless told otherwise and applies the same default to live interviews. It explicitly allows AI for preparation. Follow the instructions for your particular assessment. Anthropic: Guidance on candidates’ AI usage

    During permitted practice, ask an assistant to identify assumptions or propose a counterexample before asking for an optimization. Keep a short record of suggestions you accepted and how you verified them. You should be able to reconstruct the reasoning without replaying the conversation or relying on the assistant’s confidence.

    If an invitation leaves the allowed tools unclear, resolve that with the recruiter before the assessment. A public repository, a candidate report, and a direct instruction for your session serve different purposes. Save the session-specific instruction with your preparation notes so you do not accidentally carry over rules from a different exercise.

      An original exercise: preserve the final partial block

      The following rehearsal is our own small exercise, not an Anthropic interview question or a solution to its released challenge. Given a list of integers and a positive integer width, return the sum of each consecutive block. Include the final partial block, preserve order, and leave the input unchanged. An empty input produces an empty result.

      For values 3, 1, 4, 1, 5, 9 with width four, the result is 9 followed by 14. A tempting full-block loop processes only the first four values. It can look fast because it silently stops doing required work. The failed contract is visible without a stopwatch, a profiler, or any knowledge of accelerator hardware.

      State the numeric domain explicitly. This exercise uses Python integers, so it does not model fixed-width overflow, floating-point reassociation, or vector lane behavior. The width rejects booleans as well as zero and negative values. Those choices define this rehearsal; a real task may specify different arithmetic and validation rules.

      Run the original block-sum rehearsal with Python
      Codepython
      def block_sums(values, width):
          # Contract: values is a list of integers.
          if type(width) is not int or width <= 0:
              raise ValueError("width must be a positive integer")
          return [sum(values[start:start + width])
                  for start in range(0, len(values), width)]
      
      
      def drops_tail(values, width):
          return [sum(values[start:start + width])
                  for start in range(0, len(values) - width + 1, width)]
      
      
      values = [3, 1, 4, 1, 5, 9]
      before = values.copy()
      assert block_sums(values, 4) == [9, 14]
      assert values == before
      assert block_sums([], 4) == []
      assert block_sums([7], 4) == [7]
      assert block_sums([2, -2, 8, 0], 2) == [0, 8]
      assert block_sums([2, -2], 1) == [2, -2]
      for invalid in [0, -1, True, 2.5]:
          try:
              block_sums(values, invalid)
          except ValueError:
              pass
          else:
              raise AssertionError("invalid width accepted")
      
      try:
          assert drops_tail(values, 4) == [9, 14]
      except AssertionError:
          print("Tail-dropping mutation detected")
      else:
          raise AssertionError("test missed the missing tail")
      print("Block-sum checks passed")

        Evaluate one transformation at a time

        The reference visits every value once across its slices. Under a unit-cost arithmetic model, that is linear work in the number of values. The result stores one sum per block; a temporary slice can contain up to the smaller of the width and the input length. Python integer addition costs also depend on integer size.

        A candidate rewrite could accumulate into a running sum and flush when a block fills, then flush the remainder after the loop. Before measuring it, apply the same literal examples to both implementations. Specifically retain the shorter-than-width case, the exact multiple, and the final partial block. These inputs distinguish correct work from skipped work.

        Do not assume removing slices makes Python code faster. Interpreter overhead and built-in operations can change the outcome. Likewise, wall-clock time for this toy function says nothing about the simulator’s cycle score. Choose the metric required by the task and report only measurements you actually collected. The released repository’s scoring instructions are the authority for that exercise. Anthropic: original performance take-home repository

          Keep a short record you can explain

          Use a compact experiment log: the baseline revision, the proposed change, the reason it might reduce cost, the correctness checks, and the observed result. If the result disappoints, preserve that finding. It tells you which hypothesis to reconsider and prevents you from repeatedly trying the same idea under different wording.

          After each accepted change, inspect the diff for altered assumptions. Look for a smaller input domain, a removed assertion, a modified expected value, or a changed machine constant. A passing command is useful only when it still evaluates the original contract. For the released challenge, keep the repository’s protected tests intact.

          Rehearse a brief explanation using the block-sum example: the incomplete-block input exposed lost values; changing the iteration bounds restored coverage; literal expected outputs caught the faulty version. Then describe the remaining limits. This exercise demonstrates correctness reasoning, not hardware expertise, a benchmark improvement, or readiness for every role.

            Common questions about Anthropic preparation

            Is the public task the current hiring assessment? Do not assume that. Anthropic describes revisions and released the original version. Use the material to practice understanding unfamiliar systems, and use your invitation for the actual assessment format and requirements. Anthropic: Designing AI-resistant technical evaluations

            Should I memorize a public solution? Try a fresh attempt first. Afterwards, compare one idea at a time and explain the invariant that makes it safe. Memorizing a sequence of edits is fragile when the workload, scoring rule, or machine assumptions change. A useful rehearsal ends with a reasoned explanation you can reproduce.

            What should I do next on nrml? Practice explaining a code review or a performance measurement, then repeat this exercise with a new block width and an independently written expected result. Keep the correctness question separate from the speed question until the output contract is satisfied. The related guides below cover those adjacent skills.

              Sources & editorial notes

              This article was authored with AI using primary-source research and an automated technical review. It has not been reviewed by a human. Code examples are illustrative; run and verify them in your own environment.

              1. Anthropic: Designing AI-resistant technical evaluations

                Anthropic’s January 21, 2026 account of a historical performance assessment and its revisions. Checked November 4, 2026.

              2. Anthropic: original performance take-home repository

                Official released historical challenge, including scoring and unchanged-test requirements. Checked November 4, 2026.

              3. Anthropic: Guidance on candidates’ AI usage

                Official candidate AI guidance; assessment-specific permission takes precedence. Checked November 4, 2026.

              nrml promotion

              Put the reading into practice

              Work through an existing repository, review AI suggestions, and test the decisions behind your changes.

              Explore practice problems