Primality Test and Prime Factorization

Trial division using 6k ± 1 up to √n for integers up to 10¹⁵, with factor count and next prime.

How to use it

Enter n ≥ 2. The tool tests divisors up to √n, lists the prime factorization and the divisor count Π(e + 1).

Example: with Whole number 360, the result is 360 is Not prime (composite).

Common questions

Why the limit of 10¹⁵?

Trial division needs about √n steps and stays fast in a browser below that.

What is the divisor count?

Multiply (exponent + 1) for each prime in the factorization.

More calculators