Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Factors and multiples0/7
  • Fractions0/7
  • Decimals0/6
  • Percentages0/6
  • Algebra0/7
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
∣\mid∣Maths, module 1: Factors and multiples, lesson 6 of 7

Highest common factor

The biggest number that divides two numbers exactly. Find it by listing, by prime factors or by Euclid’s fast method.

9 minute read2 things to try5 questionsFree

The highest common factor (HCF), also called the greatest common divisor (GCD), is the largest number that is a factor of both numbers.

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 5 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • The HCF is the largest number dividing both numbers.
  • With prime factors, take each shared prime to its smaller power.
  • Euclid: HCF(a,b)(a,b)(a,b) = HCF(b,a mod b)(b, a \bmod b)(b,amodb), fast even for huge numbers.

More in Factors and multiples

  1. 1What factors are
  2. 2Multiples
  3. 3Prime and composite numbers
  4. 4Prime factor trees
  5. 5Divisibility tests
  6. 6Highest common factor
  7. 7Lowest common multiple