Skip to content

§ I · Arithmetic

Prime Factorisation Calculator

Any number up to 10¹², broken into primes, with the divisions shown.

  • Updated 2026-11-25
  • Free · no sign-up
  • Runs in your browser
Prime factorisationtrial division up to 10¹²

360 written as primes

2³ · 3² · 5

Divisors
24
Sum of divisors
1,170
Square-free core
30

Working

  1. 01

    2 divides 360

    360 ÷ 2 = 180, and again until 45 — so 2 appears 3 times.

  2. 02

    3 divides 45

    45 ÷ 3 = 15, and again until 5 — so 3 appears 2 times.

  3. 03

    5 is left over

    Nothing up to √5 divides it, so 5 is prime and stays as it is.

  4. 04

    Number of divisors

    3 + 1 × 2 + 1 × 1 + 1 = 24

  5. 05

    Sum of divisors

    Each prime contributes a geometric series; multiplied together they give 1,170.

  6. 06

    Square-free core

    Keep one of each prime: 2 × 3 × 5 = 30.

Try one

Trial division stops at the square root: if nothing below √n divides it, nothing above will either. That is why 10¹² is the ceiling here — reaching it takes a million divisions, and numbers with two large prime factors take longest.

Compared with a basic calculator

TaskBasic calculatorThis page
OperationTry divisors by handPrime decomposition up to 10¹²
Derived valuesSeparate calculationsDivisor count, divisor sum and square-free part
LimitsDisplay precision limitExplicit upper bound for trial division

How to use it

§ How to use
  1. 01

    Type a whole number. 360 is a good one to start with — it has three distinct prime factors and a large remainder to reduce.

  2. 02

    Read the factorisation, then the three lines underneath: how many divisors it has, what they add up to, and its square-free core.

  3. 03

    Follow the working to see each prime being divided out and what was left afterwards.

  4. 04

    Try a prime to see the other branch: nothing divides, the list stays empty, and the answer says so.

Four numbers, four shapes

§ 02

A prime power, a semiprime and a prime behave very differently under the same method.

NumberPrimesDivisorsSum
3602³ · 3² · 5241,170
1,0242¹⁰112,047
9,99197 · 103410,192
3,607prime23,608

1,024 is the cheapest case — one prime, ten divisions. 3,607 is the most expensive: sixty primes tried and none of them divide.

Why the method is allowed to stop

§ 03

Every whole number above 1 has one factorisation into primes, and only one. That is the fundamental theorem of arithmetic, and it is what makes “the” factorisation a thing you can ask for at all.

The method here is trial division: divide by 2 until it stops dividing, then by 3, then by 5, and so on, keeping whatever is left. Once the divisor passes the square root of the remainder, the remainder is prime and the work is over:

if d · d > n, then n is prime

That is not a shortcut, it is an equivalence. If n were composite it would have a factor no larger than √n, so having tested all of them and found nothing is the same as knowing there is nothing to find.

Counting divisors

Written as 2³ · 3² · 5, the divisors of 360 are exactly the numbers 2a 3b 5c where a runs 0–3, b runs 0–2 and c runs 0–1. Each choice is independent, so the count is 4 × 3 × 2 = 24 — one more than each exponent, multiplied.

Summing them

Each prime contributes a geometric series. For 2³ those terms are 1 + 2 + 4 + 8 = 15, which is (2⁴ − 1) / (2 − 1). Multiplying the three series gives 15 × 13 × 6 = 1,170, the sum of all 24 divisors — because expanding that product writes down every divisor exactly once.

Questions

§ 04
Why is 1 not prime?
Because a prime has exactly two positive divisors, itself and 1. One has only one divisor, so it fails the definition — and allowing it would break the uniqueness of every factorisation, since 6 would be 2 × 3 and also 1 × 2 × 3 and also 1 × 1 × 2 × 3. The fundamental theorem of arithmetic is what makes the exclusion worth keeping.
Why stop testing at the square root?
If a number n has a factor above √n, it must also have one below it, because the two factors multiply to n and cannot both exceed the square root. So testing every prime up to √n finds every possible decomposition. For 3607 that means testing up to 60 rather than up to 3607 — the saving is what makes the method usable at all.
What happens above 10¹²?
The page refuses. Trial division up to one million is what reaches 10¹², and going further means either a longer wait or a different algorithm — Pollard’s rho, quadratic sieve, number field sieve. Those are the tools factorisation-based cryptography is built to resist, and they belong in a different program, not in a page that runs on your phone.
How do I know the number is prime?
Because nothing divided it. The steps list every prime that was tried, up to √n, and if the list ends with nothing removed, the number is prime by the definition rather than by a lookup. For large numbers a probabilistic test would be faster, but it would answer “probably” — this answers by exhaustion.
What is the divisor count useful for?
It counts the ways a quantity can be split into equal groups: 360 has 24 divisors, so a display with 360 pixels can be tiled into 24 different rectangles of whole-pixel dimensions. It also appears in competition problems and in the arithmetic behind perfect numbers.
Why is the divisor sum of a prime p just p + 1?
Its only divisors are 1 and p. For a prime power p^e the divisors are 1, p, p², … p^e, and their sum is a geometric series, which simplifies to (p^(e+1) − 1) / (p − 1). Multiplying those series across the prime factors gives the sum for the whole number, because every divisor is assembled by choosing one term from each.
What is the square-free core?
The number you get by keeping one of each prime and discarding the powers: 360 = 2³ · 3² · 5 becomes 2 · 3 · 5 = 30. It is the smallest number with the same set of prime factors, and it is what remains after every square factor has been pulled out — which is exactly what simplifying √360 does.
Can it factor two numbers and find the LCM?
Not on this page, but the factorisation is what you would use: the LCM takes the highest power of each prime appearing in either number, the GCD the lowest. Factorising both by hand and comparing the columns takes a few seconds for numbers of this size.

ShowSteps

Free calculators with exact fractions, simplified surds and recorded working, so you can check supported calculations.

© 2026 ShowSteps ·