One integer, one unique prime product
Enter one whole number from 2 through 1,000,000,000,000. This tool factors a single integer; it does not find common factors across a list. OpenStax states the Fundamental Theorem of Arithmetic: every natural number other than 1 has one prime factorization, apart from order.
Exact repeated-division method
The calculation divides out 2, then tests odd candidates only while candidate² is at most the remaining value. Every exact division is recorded. Any remainder greater than 1 is prime. Repeated factors are grouped into exponent form, and positive divisor count is the product of (exponent + 1). BigInt avoids floating-point rounding.
Independent check examples
360 ÷ 2 ÷ 2 ÷ 2 ÷ 3 ÷ 3 leaves 5, so 360 = 2×2×2×3×3×5 = 2³×3²×5 and has (3+1)(2+1)(1+1)=24 positive divisors. The input 97 is prime and has two positive divisors. For 140, the result is 2²×5×7 with 12 divisors.
Input mistakes and limits
One is neither prime nor composite and is excluded. Blank input, commas, signs, decimals and exponent notation are rejected rather than silently reinterpreted. The upper bound keeps worst-case trial division responsive in a browser. Use the LCM calculator when the task concerns a list of integers.
Sources and calculation scope
Definition, uniqueness and factor-tree method: OpenStax Prime and Composite Numbers.