⚡
usefultools.dev
17

Prime Number Checker

NEW

Prime number checker for whole numbers up to 9 quadrillion: instant prime test, prime factorization, next and previous prime, and all divisors. Free, in-browser.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Spaces, commas and underscores are ignored.

✓ 97 is a prime number
97 has exactly two divisors: 1 and 97.
Prime factorization
97 = 97
Previous prime
Next prime

Divisors

2 divisors · sum 98

1, 97

⚡

Quick Examples

Typical inputs and the results this tool produces.

Prime
97
Prime
Factors
1001
7 × 11 × 13
Factors
360
2³ × 3² × 5 · 24 divisors
Carmichael
561
3 × 11 × 17
Large
1000000007
Prime · next 1000000009
📖

Overview

A prime number has exactly two divisors: 1 and itself. This prime number checker tells you instantly whether a whole number is prime and, when it is not, which factor proves it. It works for every integer from 0 up to 9,007,199,254,740,991, the largest whole number a browser can store exactly.

Besides the yes-or-no answer you get the full prime factorization, the nearest prime above and below, the number of divisors with their sum, and a list of the divisors. Students use it to check homework, and programmers use it to pick prime table sizes or test their own code.

Primality uses a deterministic Miller–Rabin test, so the answer is exact rather than probabilistic, and factoring uses fast trial division. Everything runs in your browser.

Why use this tool?

  • Exact answer for numbers up to 2^53 − 1
  • Full prime factorization in exponent form
  • Jump to the next or previous prime
  • Lists every divisor with count and sum
  • No upload: calculation stays on your device
⭐

Features

✅

Deterministic test

Miller–Rabin with fixed bases gives a proven answer for every supported number.

🧮

Prime factorization

Breaks composites into primes with exponents, such as 360 = 2³ × 3² × 5.

↔️

Next and previous

Shows the nearest primes on both sides; click one to check it.

📋

Divisor list

Counts all divisors, adds them up and lists the smallest 500.

⚡

Big numbers

Handles 16-digit inputs like 9007199254740991 in a fraction of a second.

💬

Clear reasons

Explains why 0, 1 and composite numbers are not prime.

🛠️

How to Use

1

Enter a number

Type any whole number from 0 to 9,007,199,254,740,991.

2

See the verdict

A green panel means prime; an orange one shows the smallest factor.

3

Explore factors

Read the prime factorization, divisor count, sum and list.

4

Move along

Click the previous or next prime to check it in turn.

🤔

Frequently Asked Questions