Calculate the greatest common divisor (GCD) of two numbers.
medium
{
"children": [
{
"children": [
{
"children": [],
"goal": "Identify factors of the first number"
},
{
"children": [],
"goal": "Identify factors of the second number"
},
{
"children": [],
"goal": "Find intersection of factor sets"
}
],
"goal": "Determine common factors"
},
{
"children": [
{
"children": [],
"goal": "Compare common factors to find the maximum"
}
],
"goal": "Select the largest common factor"
}
],
"goal": "Compute the greatest common divisor of two numbers"
}
Mixed goals generated by the LLM (correct + distractors).