// Numbas version: exam_results_page_options {"name": "Prime numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [{"variables": ["a", "b", "d", "f", "h", "j", "k", "sqrtd", "hlist"], "name": "Part b"}], "preamble": {"js": "", "css": ""}, "type": "question", "name": "Prime numbers", "parts": [{"minAnswers": 0, "answers": ["

Prime

", "

Composite

"], "showCorrectAnswer": true, "shuffleAnswers": false, "minMarks": 0, "maxMarks": 0, "displayType": "radiogroup", "showFeedbackIcon": true, "marks": 0, "maxAnswers": 0, "type": "m_n_x", "layout": {"expression": "", "type": "all"}, "steps": [{"variableReplacementStrategy": "originalfirst", "type": "information", "showCorrectAnswer": true, "marks": 0, "variableReplacements": [], "scripts": {}, "showFeedbackIcon": true, "prompt": "

A number that only has two factors - itself and 1 - is known as a prime number.

\n

A number that can be divided without remainder by numbers other than itself and 1 is known as a composite number. 

"}], "variableReplacementStrategy": "originalfirst", "matrix": [["1", 0], ["1", 0], [0, "1"], ["1", "0"], ["0", "1"], [0, "1"], ["1", "0"]], "warningType": "none", "scripts": {}, "choices": ["

$\\displaystyle\\var{b}$

", "

$\\displaystyle\\var{k}$

", "

$\\displaystyle\\var{f}$

", "

$\\displaystyle\\var{a}$

", "

$\\displaystyle\\var{d}$

", "

$\\displaystyle\\var{h}$

", "

$\\displaystyle\\var{j}$

"], "shuffleChoices": false, "variableReplacements": [], "stepsPenalty": 0}], "advice": "

\n

\n

The numbers and their factors are given below:

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
NumberPrime/CompositeFactors
$\\var{b}$Prime$1$, $\\var{b}$
$\\var{k}$Prime$1$, $\\var{k}$
$\\var{f}$Composite$1$, $2$, $\\var{f/2}$, $\\var{f}$
$\\var{a}$Prime$1$, $\\var{a}$
$\\var{d}$Composite$1$, $\\var{sqrtd}$, $\\var{d}$
$\\var{h}$Composite$\\var{latex(hlist)}$
$\\var{j}$Prime$1$, $\\var{j}$
\n

", "tags": ["composite", "prime", "prime number", "taxonomy"], "variables": {"h": {"templateType": "anything", "definition": "random(24,30,42,54)", "description": "", "name": "h", "group": "Part b"}, "hlist": {"templateType": "anything", "definition": "join(sort([1, 2, 3, 6, h/6, h/3, h/2, h]),', ')", "description": "", "name": "hlist", "group": "Part b"}, "d": {"templateType": "anything", "definition": "random(4,9,25,49)", "description": "", "name": "d", "group": "Part b"}, "f": {"templateType": "anything", "definition": "random(6,8,14,22,26,34,38,46)", "description": "", "name": "f", "group": "Part b"}, "k": {"templateType": "anything", "definition": "random([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97])", "description": "", "name": "k", "group": "Part b"}, "j": {"templateType": "anything", "definition": "random([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97] except k)", "description": "", "name": "j", "group": "Part b"}, "a": {"templateType": "anything", "definition": "random([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97] except b except j except k)", "description": "", "name": "a", "group": "Part b"}, "b": {"templateType": "anything", "definition": "random([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97] except j except k)", "description": "", "name": "b", "group": "Part b"}, "sqrtd": {"templateType": "anything", "definition": "sqrt(d)", "description": "", "name": "sqrtd", "group": "Part b"}}, "rulesets": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "functions": {}, "ungrouped_variables": [], "statement": "

Identify which of the following are prime numbers.

", "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Sort a list of numbers into \"prime\" or \"composite\".

"}, "extensions": [], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}]}], "contributors": [{"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}