calculate gcd of 24 and 36
Let's evaluate: pgcd(24, 36)
Let's decompose: 24 into prime factors:
2×12
22×6
23×3
Let's decompose: 36 into prime factors:
2×18
22×9
22×3×3
22×32
To obtain the GCD, we keep the common prime factors with the smallest exponent: 2^2*3
22×3
4×3
Answer:   12