Prime Number Checker

Find out whether a number is prime, its prime factors, and the previous and next prime.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Prime Number Checker and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Prime Number Checker does

    Check if a number is prime and see its factors and nearby primes.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter a whole number up to one trillion. You see whether it is prime, its prime factorisation if it is not, and the nearest prime numbers before and after it.

When to use it

Check if a number is prime and see its factors and nearby primes.

Tips

A prime has exactly two factors, one and itself.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

Handy facts

The first primes are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. Every number above 1 is either prime or a product of primes, which is why primes are called the building blocks of numbers.

Worked example

With the boxes at their starting values (Whole number: 97), the tool shows: Prime factors: 97; Previous prime: 89; Next prime: 101; Result: Prime number. Change any box to see your own numbers. The result updates as you type, and nothing leaves your browser.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is a prime number?

A number greater than 1 that can only be divided by 1 and itself, such as 2, 3, 5, 7 and 11.

Is 1 a prime?

No. A prime has exactly two different divisors, and 1 has only one.

Is 1 prime?

No.

Is 2 prime?

Yes, it is the only even prime.

How can I test a number by hand?

Divide it by primes up to its square root. If none divide it, it is prime.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages