{ "task": { "id": "case_105", "name": "next_prime", "summary": "Replaces each number with the next prime after that number.", "examples": [ { "input": [ "BOS", 6, 19, 28, 14, 10, 7, 28, 20, 6 ], "output": [ "BOS", 7, 19, 29, 17, 11, 7, 29, 23, 7 ] }, { "input": [ "BOS", 25, 18, 22, 10, 10, 23, 20, 3, 7 ], "output": [ "BOS", 29, 19, 23, 11, 11, 23, 23, 3, 7 ] }, { "input": [ "BOS", 24, 16, 26, 26, 9, 27, 27, 15, 14 ], "output": [ "BOS", 29, 17, 29, 29, 11, 29, 29, 17, 17 ] }, { "input": [ "BOS", 1, 27, 20, 0, 11, 25, 21, 28, 11 ], "output": [ "BOS", 2, 29, 23, 2, 11, 29, 23, 29, 11 ] }, { "input": [ "BOS", 23, 2, 21, 20, 1, 23, 11, 29, 5 ], "output": [ "BOS", 23, 2, 23, 23, 2, 23, 11, 29, 5 ] } ], "is_categorical": true }, "program": "return rasp.Map(next_prime, rasp.tokens).named(\"next_prime\")", "components": [ { "id": "L0_MLP", "hook": "blocks.0.mlp.hook_post", "role": { "tag": "MAPPER", "note": "Maps each input number to the next prime number at or above it, producing a per-position replacement value." }, "rasp_vars": [ "next_prime" ], "labels": [ "map_1" ] } ] }