Skip to content

Factors, primes and multiples

Number theory is the study of whole numbers: their factors, multiples, primes and remainders. This hub collects our factor, prime factorization, GCF, LCM, long division and Roman numeral tools. Most of them rest on one idea, breaking a number into primes, and the guides below show why that works.

Number Theory calculators

What is number theory?

Number theory is the study of whole numbers. It asks simple-sounding questions. Which numbers divide evenly into 60? What is the smallest number that both 4 and 6 divide into? How can you tell whether a number is prime? Answers to these questions drive everyday tasks such as simplifying fractions and scheduling, and they also power internet security.

In school, number theory shows up as factors, multiples, divisibility rules, primes, GCF and LCM. These ideas return again and again in fractions, algebra and word problems.

Key ideas to know

Factors and multiples. A factor divides a number with no remainder. A multiple is what you get by multiplying a number by 1, 2, 3 and so on. Factors are smaller than or equal to the number. Multiples are larger than or equal to it. The factor calculator lists every factor and factor pair.

Prime and composite numbers. A prime has exactly two factors, 1 and itself. A composite number has more. Every whole number above 1 is either prime or can be written as a product of primes in exactly one way, apart from order. This is called the fundamental theorem of arithmetic, and it is why prime factorization works.

Greatest common factor (GCF). The largest number that divides all numbers in a group. The GCF calculator finds it using shared primes at their lowest powers.

Least common multiple (LCM). The smallest number that all numbers in a group divide into. The LCM calculator finds it using every prime at its highest power.

Divisibility rules. Quick tests tell you if a number divides evenly. A number is divisible by 2 if it ends in an even digit, by 3 if the digits add to a multiple of 3, by 5 if it ends in 0 or 5, and by 9 if the digits add to a multiple of 9.

How the tools fit together

All three tools rest on prime factorization. Break each number into primes, then compare. For the GCF, keep what the numbers share, with the smaller power. For the LCM, keep everything that appears, with the larger power. Seeing both on the same numbers makes the difference clear.

Take 12 and 18. Their prime forms are 2² × 3 and 2 × 3². The GCF takes 2 × 3 = 6. The LCM takes 2² × 3² = 36. Notice that 6 × 36 = 216 = 12 × 18. For two numbers, GCF × LCM always equals their product. Read our guide to GCF and LCM for a full comparison and a method for choosing between them.

A simple study path

  1. Learn the multiplication facts so factors come quickly.
  2. Practice listing factor pairs in order, from 1 upward.
  3. Learn the divisibility rules for 2, 3, 5, 9 and 10.
  4. Build prime factorization trees.
  5. Find GCF and LCM using primes.
  6. Apply them to fractions: simplify with the GCF and find common denominators with the LCM.

Worked mini-example: GCF and LCM together

A baker has 24 chocolate cookies and 36 oatmeal cookies. She wants identical boxes with no cookies left over.

  1. The number of boxes must divide both 24 and 36. The most boxes is the GCF.
  2. 24 = 2³ × 3 and 36 = 2² × 3². Shared primes at lowest powers: 2² × 3 = 12.
  3. She can make 12 boxes, each with 2 chocolate and 3 oatmeal cookies.

Now suppose one machine finishes a batch every 24 minutes and another every 36 minutes, and both start together. They finish together again after the LCM: 2³ × 3² = 72 minutes.

Worked mini-example: is it prime?

Is 91 prime? Test primes up to the square root of 91, which is a bit over 9. Try 2, 3, 5 and 7. Since 7 × 13 = 91, it is not prime. Many people think 91 is prime because it does not obey simple divisibility rules, but 7 divides it.

Guides in this topic

The three guides fit together. Divisibility rules help you spot factors fast. Prime factorization turns those factors into a unique list of primes. The GCF and LCM then come straight from that list. Practice with the factor calculator, the GCF calculator and the LCM calculator, which show their working so you can follow each step.

Common questions

Is 1 prime? No. A prime needs exactly two different factors. The number 1 has only one.

Is 2 prime? Yes, and it is the only even prime.

What is the difference between GCF and LCM? GCF is a factor and is never bigger than the smallest number. LCM is a multiple and is never smaller than the largest number.

What is the GCF of two primes? It is 1, because they share no prime factors.

Where does this appear next? Fractions use it constantly. Visit the fractions and percentages hub, or return to algebra for factoring expressions.

More tools and guides

The prime factorization calculator, long division calculator and Roman numerals calculator extend the factor, GCF and LCM tools. Read long division step by step, Roman numerals explained and place value and number systems to go deeper.

The factor calculator lists every factor of a number, and the prime number entry is the building block of prime factorization. Both tools sit on this hub so they can be found from the number-theory page as well as from one another.

Guides in this topic

Browse all calculators or the guides.