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 shared prime factors"
        }
      ],
      "goal": "Examine the relationship between the two integers"
    },
    {
      "children": [
        {
          "children": [],
          "goal": "Select the largest factor common to both integers"
        }
      ],
      "goal": "Construct a method to isolate the greatest common divisor"
    }
  ],
  "goal": "Determine the greatest common divisor of two given integers"
}
    

Generated Goals

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

  • Compute the sum of the two numbers
  • Construct a method to isolate the greatest common divisor
  • Determine the prime factorization of each number
  • Identify shared prime factors
  • Find the least common multiple of the two numbers
  • Examine the relationship between the two integers
  • Select the largest factor common to both integers