// Numbas version: finer_feedback_settings {"name": "Find the prime", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Find the prime", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"primes": {"name": "primes", "group": "Ungrouped variables", "definition": "[2, 3, 5, 7, 11, 13, 17, 19, 23]", "description": "", "templateType": "anything", "can_override": false}, "nonprimes": {"name": "nonprimes", "group": "Ungrouped variables", "definition": "filter(x -> !(x in primes), 1..25)", "description": "", "templateType": "anything", "can_override": false}, "correct_answer": {"name": "correct_answer", "group": "Ungrouped variables", "definition": "random(primes)", "description": "", "templateType": "anything", "can_override": false}, "candidates": {"name": "candidates", "group": "Ungrouped variables", "definition": "sort([correct_answer, ] + shuffle(nonprimes)[0..5])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["primes", "nonprimes", "correct_answer", "candidates"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "
Find the prime among the following integers: $\\var{candidates}$.
", "minValue": "{correct_answer}", "maxValue": "{correct_answer}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ulrich G\u00f6rtz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7603/"}], "resources": []}]}], "contributors": [{"name": "Ulrich G\u00f6rtz", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7603/"}]}