Prime
A prime number is an integer greater than one with exactly two positive divisors: one and itself. Composite numbers have additional divisors. Prime factorization expresses a nonzero integer as a product of prime factors, with repeated factors recorded by exponents.
Primality and prime powers
n = \prod_{j = 1}^{m}p_{j}^{e_{j}}n > 1\text{ prime} \Leftrightarrow \text{only positive divisors are }1,nn is the integer; pⱼ are distinct primes, eⱼ positive integer exponents, and ∏ denotes multiplication. The decomposition equation is an educational explanation of the Factorization result.
Select a number investigation
Select Prime test, enter an Integer of at least 2 and calculate. Or select Factorization and enter an integer whose absolute value is at least 2 and at most one trillion; a negative value retains a −1 sign in the factorized result.
How to read the evidence
Prime test returns “is prime” or “is composite” and bit length; it accepts unsigned integers up to 64 bits and uses small-divisor checks plus deterministic Miller–Rabin bases for that range. Factorization gives prime factors, powers and the number of factors including repetition.
Two ways to understand primality
A prime such as 13 has only 1 and 13 as positive divisors. A composite such as 12 can be arranged in multiple rectangular factor pairs.
A prime such as 13 has only 1 and 13 as positive divisors. A composite such as 12 can be arranged in multiple rectangular factor pairs.
What is factorization useful for?
Prime powers help simplify fractions, find GCD/LCM, and reason about divisibility. For 360, the decomposition is 2³ × 3² × 5.
Prime powers help simplify fractions, find GCD/LCM, and reason about divisibility. For 360, the decomposition is 2³ × 3² × 5.
Limits reflect different algorithms
The primality and factoring modes have different accepted ranges. Check the chosen mode and integer size before interpreting an error.
The primality and factoring modes have different accepted ranges. Check the chosen mode and integer size before interpreting an error.
Quick answers
Is 1 prime?
No; it has just one positive divisor.
Does Prime test factor every composite?
Prime test gives classification; select Factorization for the decomposition.
Can I factor a negative integer?
Yes, within the Factorization limit; −1 is shown as its sign factor.
