About this tool
Enter a whole number to find out whether it is prime and to see its full prime factorisation, for example 360 = 2^3 × 3^2 × 5. The result updates as you type and everything runs in your browser.
The tool uses trial division: it tries 2 and then odd candidates up to the square root of what remains, collecting each prime factor with its exponent. A number is reported as prime when the only factor found is itself with exponent 1, and a composite number shows its factors joined with × signs. A prime simply shows itself, such as 97 = 97.
The input must be a plain integer with an optional minus sign; decimals, empty input and text show an invalid message. Numbers above 1,000,000,000,000,000 (10^15) are refused with a notice, which keeps the page responsive because trial division on very large primes would take far too long. Values below 2, meaning 1, 0 and all negatives, are reported as not prime with no prime factors.
There is no probabilistic test and no big-integer mode, so this is for everyday sizes rather than cryptographic ones.