# Prime Number Checker

> Check if any number is prime and find its complete prime factorization. Tests numbers instantly with factor breakdown.

- Open the tool: https://overtooled.com/prime-number-checker
- Category: Math & Finance
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: prime, factor, factorization, composite, math, number

## In short

Check if a number is prime and see its factorization.

## Overview

Checks whether a whole number is prime and, for composite numbers, shows its prime factorization and full list of divisors. Includes a clickable 1-100 grid with the 25 primes highlighted.

## Features

- Primality by deterministic Miller-Rabin (exact for every allowed input) and factorization by small-prime trial division plus Pollard rho, so even 15-digit numbers answer instantly
- Prime factorization for composites, shown as e.g. "2 x 2 x 3 x 5"
- All divisors with a count, built from the prime factorization
- Tap the factorization or the divisor list (shown in full) to copy it; one Pipeline button sends the one tapped last
- Clickable 1-100 grid; primes are highlighted and clicking a number checks it
- Explanation line (e.g. "Numbers less than 2 are not prime")

## How to use it

1. Type a number, or click one in the 1-100 grid.
2. Read Prime / Not Prime, the factorization and the divisors.

## Inputs

- An integer up to 1,000,000,000,000,000 (1e15) in absolute value

## Outputs

- Prime / Not Prime verdict, prime factorization, sorted divisor list

## Limits and notes

- Numbers larger than 1e15 are rejected with a message
- Whole numbers only: decimals such as 7.5 show a message instead of being truncated (1e3 and 1,000 are read as 1000); 0, 1 and negative numbers are reported as not prime, and negatives get no factorization or divisor list
- Nothing is saved; runs entirely in the browser

## Questions and answers

### How does the Prime Number Checker work?

The tool uses the Miller-Rabin primality test with a fixed set of bases that makes it exact for every allowed input, and factors composites by trial division by small primes plus Pollard's rho method, so even 15-digit numbers answer instantly. Divisors are built from the prime factorization.

### What is a prime number?

A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples include 2, 3, 5, 7, 11, 13, 17, and 19.

### How large of a number can I check?

Up to 1,000,000,000,000,000 (one quadrillion). Larger numbers are rejected to keep the page responsive. Checks are instant at every size.

### What is prime factorization?

Prime factorization breaks a number into the product of prime numbers. For example, 60 = 2 x 2 x 3 x 5. Every whole number greater than 1 has a unique prime factorization.

## Related tools

- [Calculator](https://overtooled.com/calculator.md): Calculator with keyboard shortcuts, history, and memory
- [Modulo Calculator](https://overtooled.com/modulo-calculator.md): Calculate remainders (X mod Y) with step-by-step work
- [Roman Numeral Converter](https://overtooled.com/roman-numeral.md): Convert between standard numbers and Roman numerals instantly
- [Compound Interest Calculator](https://overtooled.com/compound-interest.md): Calculate investment growth with compound interest and regular contributions

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
