A prime number is a whole number greater than 11 with exactly two positive divisors: 11 and itself. So 2,3,5,2, 3, 5, and 77 are prime, 11 is not prime, and a number like 1212 is composite. A composite number is any whole number greater than 11 with more than two positive divisors — 1212 is composite because it is divisible by 1,2,3,4,6,1, 2, 3, 4, 6, and 1212.

For reference, the primes up to 5050 are

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47.2,\ 3,\ 5,\ 7,\ 11,\ 13,\ 17,\ 19,\ 23,\ 29,\ 31,\ 37,\ 41,\ 43,\ 47.

There is no simple repeating gap pattern: 1111 and 1313 are close, but the jump from 2323 to 2929 is larger.

When You Run a Primality Test

You apply the test below whenever you need to decide whether a single whole number n>1n > 1 is prime — in factorization, divisibility, GCD and LCM work, modular arithmetic, and (with much larger numbers and extra algorithms) cryptography. To be prime, a number must clear two conditions: it must be greater than 11, and its only positive divisors must be 11 and itself. That is why 11 is not prime, and why 22 is prime even though it is even — it has exactly two divisors, 11 and 22.

The Steps

For a whole number n>1n > 1, test whether any whole number from 22 up to n\lfloor \sqrt{n} \rfloor divides it exactly. The reason you can stop at the square root: if n=abn = ab, then one factor must be n\le \sqrt{n}, so if no divisor appears by then, no hidden larger-factor pair waits above it.

In practice, start with quick divisibility rules to eliminate easy cases:

  1. If nn is even and greater than 22, it is not prime.
  2. If the digits add to a multiple of 33, then nn is divisible by 33.
  3. If nn ends in 00 or 55 and is greater than 55, it is divisible by 55.

These shortcuts do not prove primality on their own, but they rule out many composites fast.

Full Worked Example: Is 2929 Prime?

First find the cutoff:

295.38,\sqrt{29} \approx 5.38,

so it is enough to check whole-number divisors up to 55.

  • 2929 is not divisible by 22 — it is odd.
  • 2929 is not divisible by 332+9=112 + 9 = 11, not a multiple of 33.
  • 2929 is not divisible by 55 — it does not end in 00 or 55.

Checking 44 adds nothing, since any multiple of 44 is even and 2929 already failed the 22 test. No divisor up to 55 works, so 2929 is prime.

Where Students Get Stuck (and How to Check)

  • Saying 11 is prime. It is not — the definition needs exactly two positive divisors, and 11 has only one.
  • Thinking every odd number is prime. Many odd numbers are composite; for instance 21=3×721 = 3 \times 7. Always run the divisor check, do not assume.
  • Checking too far. For primality you do not need every number below nn — stopping at n\sqrt{n} is enough. If you are testing past the square root, you are wasting effort.

Try It Yourself

Test 4747 and 5151 with the same square-root method. One is prime and one is composite, which is a quick way to confirm that the stopping rule at n\sqrt{n} truly makes sense to you. Prime numbers matter because every integer greater than 11 factors into primes in a way that is unique up to order — the backbone of much of number theory.

Frequently Asked Questions

Is 1 a prime number?
No. A prime number has exactly two positive divisors, 1 and itself. The number 1 has only one positive divisor.
Is 2 the only even prime number?
Yes. Every even number greater than 2 is divisible by 2, so it is not prime.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →