Add the requested inputs
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Learning & education · Free online tool
Check whether a number is prime, see its prime factorisation and find the nearest primes.
Runs locally in your browser
Use it with confidence
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Use the main action when needed. Trial division by 2 and odd numbers up to the square root decides primality and finds the prime factors. The divisor count comes from the factor powers.
97 is prime. 100 = 2² × 5², has 9 divisors, and sits between the primes 97 and 101.
Works for whole numbers from 0 to one trillion. 0 and 1 are neither prime nor composite.
Helpful answers
Yes. Use it as often as you need, with no sign-up and no run limit. Your inputs stay in your browser.
No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.
Trial division by 2 and odd numbers up to the square root decides primality and finds the prime factors. The divisor count comes from the factor powers.
Works for whole numbers from 0 to one trillion. 0 and 1 are neither prime nor composite.