Prime Factorisation & Prime Number Checker
Prime factors in power form, a prime check and the list of all divisors.
- Number of divisors
- 24
- Sum of divisors
- 1,170
- Previous prime
- 359
- Next prime
- 367
- All divisors
- 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 18, 20, 24, 30, 36, 40, 45, 60, 72, 90, 120, 180, 360
Working
- 1.360 ÷ 2 = 180
- 2.180 ÷ 2 = 90
- 3.90 ÷ 2 = 45
- 4.45 ÷ 3 = 15
- 5.15 ÷ 3 = 5
- 6.5 ÷ 5 = 1
Formula and sources
Divide repeatedly by the smallest prime that divides evenly until 1 is left If n = p₁^a × p₂^b × …, the number of divisors = (a + 1)(b + 1)… Sum of divisors = Π (p^(a+1) − 1) ÷ (p − 1)
- Fundamental theorem of arithmetic — unique prime factorisation
When to use the Prime Factorisation
Power form, as in the textbook
360 is written as 2³ × 3² × 5. The repeated-division steps follow the same order as a factor tree or division table in class.
Checking whether a number is prime
A prime has exactly two divisors, 1 and itself. The calculator also shows the nearest primes before and after it.
Counting and listing divisors
From the power form, the number of divisors is the product of each exponent plus one: 360 has 4 × 3 × 2 = 24 divisors, all listed.
The basis of GCD, LCM and fractions
Prime factorisation is used to find the GCD and LCM, simplify fractions and simplify roots such as √72 = 6√2.
Frequently asked questions
How large a number can be factorised?
Up to one trillion. Numbers that size are factorised by trial division up to their square root, which is still fast in the browser.
Why is the divisor list sometimes missing?
When there are more than 240 divisors the list is hidden to stay readable. Their count and sum are still shown.
What is a perfect number?
A number whose divisors, excluding itself, add up to the number, like 6 and 28. Subtract the number from the sum of divisors to check.
How can I quickly check whether a number is prime?
Try dividing only by primes up to its square root. For 97, try 2, 3, 5 and 7 because √97 is under 10; none divides evenly, so 97 is prime.
What is prime factorisation used for outside school?
Besides GCDs and LCMs, it underpins public-key cryptography such as RSA, which secures online banking, because factorising very large numbers is extremely hard.
Related calculators
- GCD & LCMGCD and LCM of up to ten numbers by prime factorisation and Euclid's algorithm.Example: GCD (greatest common divisor)12Calculate →
- FractionsAdd, subtract, multiply and divide fractions or mixed numbers, with steps.Example: Simplest form31/12Calculate →
- Quadratic EquationRoots of a quadratic by the formula, the discriminant and the vertex.Example: Root x₁0.5Calculate →