Arithmetic

How to solve

The GCF is the largest positive integer that divides both numbers.

Steps

  1. List prime factors of each number.
  2. Multiply the shared primes with the smaller exponents.
  3. Or use the Euclidean algorithm: repeatedly replace (a, b) with (b, a mod b).

Example

GCF(18, 24)

  1. 18 = 2·3², 24 = 2³·3.
  2. Shared: 2¹·3¹ = 6.

Answer: 6

Loading drills…