Skip to content
Local

Study

Prime Number Checker

Check whether a number is prime, see its prime factorisation, find the next and previous prime, and list every prime in a range.

Runs in your browser. Nothing leaves this device.

How to use Prime Number Checker

  1. 1Type a whole number. Very large ones, up to 60 digits, work too.
  2. 2Read whether it is prime, its prime factors and the primes either side of it.
  3. 3Enter a range below to list every prime in it, then copy the list.

Questions

Is 1 a prime number?

No. A prime has exactly two factors, 1 and itself, and 1 has only one. The first prime is 2.

How are such large numbers checked?

With the Miller-Rabin test on exact whole numbers. Below about 3.3 × 10²⁴ the answer is certain; above that it is a probability test whose chance of being wrong is far too small to matter.

Why are some factors not split?

Splitting a product of two very large primes is hard for any computer. If a part cannot be split in a moment, the tool says so instead of freezing the page.

Is anything sent to a server?

No. Every number is worked out in your browser.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc