learn › Pre-Algebra

Factors & primes

lesson · about 3 minutes

Primes, prime factors, greatest common divisor, least common multiple.

Best in your head · no pen, no calculator why?

Opens at level 14. You're level 1. You can read and practice here now.

the idea

A prime is a whole number above 1 whose only divisors are 1 and itself: 2, 3, 5, 7, 11, 13 and so on. Every other whole number above 1 splits into primes in only one way, apart from order: its prime factorization. 84 is 2 × 2 × 3 × 7.

That split answers most questions here, including the greatest common divisor (GCD), the biggest number that divides both of two numbers, and the least common multiple (LCM), the smallest number both divide into.

techniques

Test primes to the square root

Deciding whether a number is prime.

  1. Estimate the square root, then try each prime up to it.
  2. Shortcuts: 2 divides even numbers, 5 divides endings of 0 or 5, and 3 divides when the digit sum does.
  3. If none divides it, it is prime: any bigger factor would pair with a smaller one you tried.
worked example

Example: What is the smallest prime factor of 91?

  1. √91 is between 9 and 10, so try 2, 3, 5 and 7.
  2. 91 is odd, its digits sum to 10, and it ends in 1.
  3. 91 ÷ 7 = 13.

Answer: 7

Split into primes

Largest prime factor, and the first step for GCD and LCM.

  1. Divide by the smallest prime that works, and write it down.
  2. Repeat until what is left is prime.
  3. Those primes and the one left over are the factorization. The leftover prime is the largest.
worked example

Example: What is the largest prime factor of 132?

  1. 132 ÷ 2 = 66, and 66 ÷ 2 = 33.
  2. 33 ÷ 3 = 11, and 11 is prime.
  3. 132 = 2 × 2 × 3 × 11.

Answer: 11

Shared primes and all primes

The GCD or LCM of two numbers.

  1. Factor both numbers into primes.
  2. GCD: multiply the primes they share, each at the lower power.
  3. LCM: multiply every prime that appears in either, each at the higher power.
worked example

Example: What is the least common multiple of 20 and 30?

  1. 20 is 2² × 5, and 30 is 2 × 3 × 5.
  2. Every prime at its higher power: 2² × 3 × 5 = 60.
  3. Check: the GCD is 2 × 5 = 10, and 10 × 60 = 600 = 20 × 30.

Answer: 60

watch out for

practice

Sign in to try one

Spot the prime

worked example

Which number is prime?

  1. 93
  2. 133
  3. 71
  4. 129

Answer: 71

  1. Test the primes up to √71: 2, 3, 5 and 7 (9² = 81 is past 71). None divides 71, so it is prime.
  2. The others: 93 = 3 × 31, 129 = 3 × 43, 133 = 7 × 19.

Largest prime factor

worked example

What is the largest prime factor of 34?

Answer: 17

  1. 34 = 2 × 17.
  2. The largest prime factor is 17.

Greatest common divisor

worked example

What is the greatest common divisor of 198 and 154?

Answer: 22

  1. 198 = 2 × 3² × 11 and 154 = 2 × 7 × 11.
  2. Take the primes they share, each at its lower power: 2 × 11 = 22.
  3. Check: 198 = 22 × 9 and 154 = 22 × 7, and 9 and 7 share no factor other than 1.

Least common multiple

worked example

What is the least common multiple of 20 and 26?

Answer: 260

  1. 20 = 2² × 5 and 26 = 2 × 13.
  2. Take every prime at its higher power: 2² × 5 × 13 = 260.
  3. Check: 20 × 26 ÷ 2 (their greatest common divisor) = 520 ÷ 2 = 260.

Sign in to start