Prime factorization calculator
Is it prime, and its factors
Is it prime, and its factors
Enter a whole number from 2 to one trillion.
Divide by 2, 3, 5, 7… as many times as possible while the divisor squared is not larger than what is left; any remainder above 1 is prime.
360 = 2 × 180 = 2 × 2 × 90 = 2 × 2 × 2 × 45 = 2³ × 3² × 5; it has (3+1)(2+1)(1+1) = 24 divisors.
Prime factorization simplifies fractions, finds the GCD and LCM, and tests divisibility. 84/126 becomes simple once you see 84 = 2² × 3 × 7 and 126 = 2 × 3² × 7: cancel 2 × 3 × 7 = 42 to get 2/3.
A number is divisible by 2 if it ends in an even digit, by 3 if its digits add up to a multiple of 3, by 5 if it ends in 0 or 5, and by 9 if its digits add up to a multiple of 9.
No. A prime has exactly two divisors, 1 and itself.
Up to one trillion, which it handles in a moment.
Multiplying two huge primes is easy, but factoring the result back is extremely hard.