Arithmetic on the numbers you type
Check whether an integer is prime
The page tests divisibility up to the square root.
Numbers longer than 12 digits are rejected so the tab stays responsive.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Prime check
The sample is fixed. It uses the same rule as the form.
- Number
- 17
- Result
- Prime
How to use it
- 1Fill in the fields.
- 2Read the result.
- 3Copy the line you need.
Good to know
- 1 is not prime. 2 is prime.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
1 is not prime. 2 is prime.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Find the greatest common divisor and least common multiple
Both results use integer arithmetic, so a very long integer stays exact.
- Compute n!
n! is 1 × 2 × … × n, computed with integers.
- Convert binary, octal, decimal, and hex
255, 0xFF, and 11111111 are one integer written three ways. This page keeps that integer exact and shows the other spellings beside the field you edit.