Prime numbers are among the oldest topics in mathematics, and they are also useful. They help you simplify fractions, find common denominators and understand how numbers are built. Factors and multiples are closely related ideas. This guide explains what primes and factors are, how to find them, how to break a number into prime factors and how to use that to find the greatest common factor and least common multiple.

What Is a Factor?

A factor of a number is a whole number that divides it exactly, with no remainder. The factors of 12 are 1, 2, 3, 4, 6 and 12, because each of them divides 12 evenly. Factors come in pairs: 1 × 12, 2 × 6 and 3 × 4 all equal 12.

To list all factors of a number, test divisors starting from 1 and write down each pair. For 36, the pairs are 1 × 36, 2 × 18, 3 × 12, 4 × 9 and 6 × 6, so the factors are 1, 2, 3, 4, 6, 9, 12, 18 and 36. That is nine factors, an odd number, which happens because 36 is a perfect square: 6 appears in a pair with itself.

What Is a Prime Number?

A prime number is a whole number greater than 1 that has exactly two factors: 1 and itself. A number with more than two factors is called composite. A few points are worth remembering:

  • 1 is not prime. It has only one factor.
  • 2 is the only even prime. Every other even number is divisible by 2.
  • There are infinitely many primes. The ancient Greek mathematician Euclid gave a proof of this more than two thousand years ago.

The primes below 50 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47. That is 15 primes.

Grid of numbers from 1 to 50 with the 15 prime numbers highlighted

How to Test Whether a Number Is Prime

You do not need to test every smaller number. If a number n has a factor larger than its square root, it must also have a matching factor smaller than the square root. So you only have to check divisors up to the square root of n.

  • Is 91 prime? The square root is a little under 10. Check 2, 3, 5 and 7. Dividing by 7 gives 13 exactly, so 91 = 7 × 13 and it is not prime.
  • Is 97 prime? The square root is about 9.8, so check 2, 3, 5 and 7. None of them divides 97, so 97 is prime.

Divisibility Rules That Save Time

Divisible by Rule
2 The last digit is even
3 The digits add up to a multiple of 3
5 The last digit is 0 or 5
9 The digits add up to a multiple of 9
10 The last digit is 0

For example, 4,563 has digits that add up to 4 + 5 + 6 + 3 = 18. That is a multiple of 3 and of 9, so 4,563 is divisible by both.

Prime Factorization

Every whole number greater than 1 is either prime or can be written as a product of primes in exactly one way, apart from the order of the factors. This is called the fundamental theorem of arithmetic. Writing a number as a product of primes is its prime factorization.

To factorize 360, keep dividing by the smallest prime that works:

  1. 360 ÷ 2 = 180
  2. 180 ÷ 2 = 90
  3. 90 ÷ 2 = 45
  4. 45 ÷ 3 = 15
  5. 15 ÷ 3 = 5
  6. 5 is prime, so stop.

The result is 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2³ × 3² × 5.

Factor chain of 360 divided by 2, 2, 2, 3, 3 leaving 5 so that 360 equals 2 cubed times 3 squared times 5

Counting the Factors of a Number

The prime factorization tells you how many factors a number has. Add 1 to each exponent and multiply the results. For 360 = 2³ × 3² × 5¹, the count is (3 + 1) × (2 + 1) × (1 + 1) = 4 × 3 × 2 = 24 factors.

Greatest Common Factor (GCF)

The greatest common factor of two numbers is the largest number that divides both. Find it by taking the lowest power of each shared prime. For 48 and 180:

  • 48 = 2⁴ × 3
  • 180 = 2² × 3² × 5
  • Shared primes: 2 (lowest power 2²) and 3 (lowest power 3¹)
  • GCF = 2² × 3 = 4 × 3 = 12

The GCF is the tool for simplifying fractions. To simplify 48/180, divide both by 12 to get 4/15.

Least Common Multiple (LCM)

The least common multiple is the smallest number that both numbers divide into. Take the highest power of every prime that appears:

  • Primes involved: 2, 3 and 5
  • Highest powers: 2⁴, 3² and 5¹
  • LCM = 16 × 9 × 5 = 720

There is a handy check: GCF × LCM = the product of the two numbers. Here 12 × 720 = 8,640, and 48 × 180 = 8,640. The LCM is what you need to add fractions with different denominators.

Where Primes and Factors Are Used

  • Fractions: simplifying and finding common denominators.
  • Scheduling: if one event repeats every 12 days and another every 18, they coincide every 36 days, the LCM.
  • Grouping: splitting 48 students into equal groups uses the factors of 48.
  • Cryptography: many modern encryption systems rely on the fact that multiplying two large primes is easy, but factoring the result is very hard.

Common Mistakes

  1. Calling 1 a prime. It is neither prime nor composite.
  2. Forgetting that 2 is prime. It is the only even prime.
  3. Stopping a factorization too early. Keep dividing until every factor is prime.
  4. Mixing up GCF and LCM. The GCF is the biggest number that divides both numbers, and the LCM is the smallest that both divide into.
  5. Missing a factor pair. List pairs systematically and stop when the factors start to repeat.

Calculate It Online

Use the factor calculator to list all factors and the prime factorization of any number. Once you have the GCF, the fraction calculator simplifies fractions for you, and the remainder calculator is a quick way to check divisibility.

Frequently Asked Questions

Why is 1 not a prime number?

A prime needs exactly two different factors. The number 1 has only one. Excluding it also keeps prime factorization unique.

What is the largest known prime?

The record keeps changing as computers find larger ones, and the current record holder is a huge number with millions of digits. Check a current source if you need the latest.

What is the difference between a factor and a multiple?

Factors divide a number. Multiples are what you get by multiplying it. The factors of 6 are 1, 2, 3 and 6, while its multiples are 6, 12, 18 and so on.

How do I know if a large number is prime?

Check divisibility by all primes up to its square root. For very large numbers, computers use specialized tests.