Prime Number

Definitionnoun phrase

What is a prime number?

A prime number is a whole number greater than 1 with exactly two factors: 1 and itself. The first primes are 2, 3, 5, 7, 11 and 13. The number 1 is not prime, and 2 is the only even prime number. Whole numbers greater than 1 that are not prime are composite.

In Spanish
número primo
Also called
prime
Grade level
K-5
Grade 4Grade 5Grade 6CCSS 4.OA.B.4GED

Prime Number in a picture

Composite numbers make several rectangles, primes make only oneTwelve dots can be arranged as 1 by 12, 2 by 6 and 3 by 4 rectangles, so 12 is composite. Seven dots make only a 1 by 7 row; trying 2 rows leaves one dot over, so 7 is prime.12 is composite: several rectangles1 × 122 × 63 × 4Factors of 12:1, 2, 3, 4, 6, 127 is prime: only one rectangle1 × 72 rows: 1 left over ✗Factors of 7:1 and 7 onlyPrime: exactly 2 factors. Composite: more than 2.
A number of dots that can form a rectangle with more than one row is composite. Seven dots fit only in a single row, so 7 is prime: its only factors are 1 and 7.

Formal definition and notation

A whole number p > 1 is prime if its only positive divisors are 1 and p. A whole number n > 1 that is not prime is composite: it can be written as n = a × b with 1 < a ≤ b < n. The number 1 is neither prime nor composite. Every composite number can be written as a product of primes in exactly one way, apart from the order of the factors (the Fundamental Theorem of Arithmetic).

Symbol Read it as Meaning
p p a letter often used to stand for a prime
23 × 3 two cubed times three the prime factorization of 24, with repeated primes written as powers
a ∣ b a divides b a is a factor of b, for example 3 ∣ 12

Key facts

  • The 15 primes less than 50 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47.
  • 1 is not prime: it has only one factor. 0 is not prime either, because every nonzero whole number divides 0.
  • 2 is the only even prime. Every other even number has 2 as a factor, so it has at least three factors.
  • Every whole number greater than 1 is either prime or a product of primes, such as 60 = 22 × 3 × 5.
  • There are infinitely many primes; a proof appears in Euclid’s Elements.

Prime test: trial division

Prime test: trial division
n is prime if no prime p ≤ √n divides it
n
the whole number greater than 1 that you are testing
p
the primes to try, in order: 2, 3, 5, 7, 11, …
√n
where you can stop: if no prime up to here divides n, then n is prime

Why it works: if n = a × b, the smaller factor is at most √n. For 97, √97 ≈ 9.8, so you only try 2, 3, 5 and 7. None divides 97, so 97 is prime.

Try it: prime checker and factor tree

Interactive

Type any whole number up to 9,999, or tap a sample. The checker lists every factor, says whether the number is prime or composite, and draws a factor tree that ends in primes. Tip: 51, 57 and 91 look prime, but are they?

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Prime Number examples, step by step

Example 1: Is 29 prime?

Warm-up

Decide whether 29 is prime.

  1. √29 ≈ 5.4, so you only need to test the primes 2, 3 and 5.
  2. 29 is odd, so 2 is not a factor.
  3. The digit sum is 2 + 9 = 11, which is not a multiple of 3, so 3 is not a factor.
  4. 29 does not end in 0 or 5, so 5 is not a factor.

Answer: 29 is prime: its only factors are 1 and 29.

Example 2: A number that looks prime

Core

Is 91 prime or composite?

  1. √91 ≈ 9.5, so test the primes 2, 3, 5 and 7.
  2. 91 is odd (not 2), its digit sum 10 is not a multiple of 3, and it does not end in 0 or 5.
  3. Try 7: 91 ÷ 7 = 13 exactly, so 91 = 7 × 13.

Answer: 91 is composite. Its factors are 1, 7, 13 and 91.

Example 3: Prime factorization

Test-style

Write 360 as a product of prime factors, using exponents.

  1. Divide by 2 while you can: 360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45.
  2. 45 is odd. Divide by 3: 45 = 3 × 15 = 3 × 3 × 5.
  3. Every factor is now prime: 360 = 2 × 2 × 2 × 3 × 3 × 5.
  4. Use exponents for repeated primes: 23 × 32 × 5.

Answer: 360 = 23 × 32 × 5

Common mistakes

✗ Mistake1 is prime, because it divides only by 1 and itself.
✓ Instead1 is not prime. It has only one factor, and a prime needs exactly two.

If 1 counted as prime, prime factorizations would stop being unique: 6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3.

✗ MistakeOdd numbers are prime, so 9, 15 and 21 are prime.
✓ InsteadCheck the factors: 9 = 3 × 3, 15 = 3 × 5, 21 = 3 × 7. All three are composite.

Being odd only rules out the factor 2. An odd number can still have factors such as 3, 5 or 7.

✗ Mistake51 looks prime, so it is prime.
✓ InsteadTest small primes: 5 + 1 = 6 is a multiple of 3, and 51 = 3 × 17.

Numbers such as 51, 57 and 91 fool many students. Testing primes up to the square root settles it every time.

Not to be confused with

Prime Numbervs.Composite Number

A composite number has more than two factors: 12 has six (1, 2, 3, 4, 6, 12). A prime has exactly two. The numbers 0 and 1 are neither prime nor composite.

Prime Numbervs.Odd number

Odd means not divisible by 2. Most primes are odd, but many odd numbers (9, 15, 21, 25) are not prime, and 2 is prime even though it is even.

Prime Numbervs.Factor

A factor of 12 is any whole number that divides it evenly: 1, 2, 3, 4, 6 and 12. Its prime factors are only the primes among them: 2 and 3.

Quick check: 3 questions

Question 1 of 3

Which number is prime?

Show answer and explanation

Answer: B. 31 has only the factors 1 and 31: 2, 3 and 5 do not divide it, and √31 is less than 6. 21 = 3 × 7 and 51 = 3 × 17 are composite, and 1 is neither prime nor composite.

Question 2 of 3

How many prime numbers are between 10 and 20?

Show answer and explanation

Answer: B. The primes between 10 and 20 are 11, 13, 17 and 19. The odd numbers 15 (3 × 5) and the even numbers are composite.

Question 3 of 3

Which is the prime factorization of 84?

Show answer and explanation

Answer: A. Only A uses primes alone: 2 × 2 × 3 × 7 = 84. The other choices multiply to 84 too, but they contain composite numbers (4, 42 and 14).

Prime Number: frequently asked questions

Why is 1 not a prime number?

A prime must have exactly two different factors, 1 and itself. The number 1 has only one factor, so it does not qualify. Leaving 1 out also keeps prime factorization unique: 12 = 2 × 2 × 3 in exactly one way. If 1 were prime, you could tack on as many 1s as you like and get endless different factorizations.

Is 2 a prime number?

Yes. The only factors of 2 are 1 and 2, so it is prime, and it is the smallest prime. It is also the only even prime: every other even number can be divided by 2, so it has at least three factors, 1, 2 and itself, which makes it composite.

How do you check whether a large number is prime?

Divide by the primes in order, 2, 3, 5, 7, 11 and so on, and stop once the prime is bigger than the square root of the number. If none of them divides evenly, the number is prime. For 221, you check primes up to 14: 13 divides it, because 221 = 13 × 17, so 221 is composite.

Practice and tools

Sources

  1. Common Core State Standards, Grade 4 Operations and Algebraic Thinking (4.OA.B.4)
  2. OpenStax, Prealgebra 2e, 2.4 Find Multiples and Factors
  3. OpenStax, Prealgebra 2e, 2.5 Prime Factorization and the Least Common Multiple

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 4.OA.B.4

Cite this entry

Effortless Math Team. “Prime Number.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/prime-number/

Flashcard

TermPrime Number2, 3, 5, 7, 11, 13, …
DefinitionA whole number greater than 1 with exactly two factors, 1 and itself. 7 is prime (only 1 × 7); 9 is not (3 × 3).
Study the full deck

Browse all terms in the Math Dictionary · More number system terms · Random term