Présentation du problème

GCD


Calculate the greatest common divisor (GCD) of two numbers.

medium
Generate Goal Tree Build Plan

Goal Tree Generated by LLM

{
  "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"
}
    

Generated Goals

Mixed goals generated by the LLM (correct + distractors).

  • Find intersection of factor sets
  • Determine the prime factorization of each number
  • Compare common factors to find the maximum
  • Identify factors of the second number
  • Determine common factors
  • Identify factors of the first number
  • Find the least common multiple of the two numbers
  • Compute the sum of the two numbers
  • Select the largest common factor