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 numbers like 1212 are composite.

If a whole number greater than 11 has more than two positive divisors, it is called composite. For example, 1212 is composite because it is divisible by 1,2,3,4,6,1, 2, 3, 4, 6, and 1212.

Prime Numbers Up To 50

Here are the prime numbers up to 5050:

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

There is no simple repeating gap pattern. For example, 1111 and 1313 are close together, but the next gap from 2323 to 2929 is larger.

What Makes A Number Prime?

To be prime, a number must pass both conditions:

  1. It must be greater than 11.
  2. Its only positive divisors must be 11 and the number itself.

That is why 11 is not prime, and it is also why 22 is prime even though it is even. The number 22 has exactly two positive divisors: 11 and 22.

How To Tell If A Number Is Prime

For a whole number n>1n > 1, you can test whether it is prime by checking whether any whole number from 22 up to n\lfloor \sqrt{n} \rfloor divides it exactly.

The reason is practical: if n=abn = ab, then one of the factors must be less than or equal to n\sqrt{n}. So if no divisor appears by the time you reach n\sqrt{n}, there is no hidden larger-factor pair waiting above it.

In everyday work, people usually check small divisibility rules first:

  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.

Those shortcuts do not prove a number is prime on their own, but they help rule out many composite numbers quickly.

Worked Example: Is 2929 Prime?

To test 2929, first note that

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 because it is odd.
  • 2929 is not divisible by 33 because 2+9=112 + 9 = 11, and 1111 is not a multiple of 33.
  • 2929 is not divisible by 55 because it does not end in 00 or 55.

Checking 44 adds nothing here because any multiple of 44 is even, and 2929 is already not divisible by 22.

No divisor up to 55 works, so 2929 is prime.

Common Mistakes With Prime Numbers

Saying 11 is prime

It is not. The definition requires exactly two positive divisors, and 11 has only one.

Thinking every odd number is prime

Many odd numbers are composite. For example, 2121 is odd, but

21=3×721 = 3 \times 7

so it is not prime.

Checking too far

If you are only testing primality, you do not need to try every number less than nn. Stopping at n\sqrt{n} is enough.

Where Prime Numbers Are Used

Prime numbers show up in factorization, divisibility, greatest common divisor problems, and least common multiple problems. They matter because every integer greater than 11 can be broken into prime factors in a way that is unique up to order.

They also appear in modular arithmetic and cryptography. In cryptography, the setting is much more specialized, and large primes are used together with additional rules and algorithms.

Try A Similar Problem

Test 4747 and 5151 with the same square-root method. One is prime and one is composite, so this is a quick way to check whether the stopping rule at n\sqrt{n} makes sense to you.

Need help with a problem?

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

Open GPAI Solver →