QED
Number Theory · step 2 of 13

Primes & unique factorisation

A prime has exactly two positive divisors, which is why 1 is not prime — treating it as prime would break unique factorisation. The fundamental theorem of arithmetic says every integer above 1 factors into primes in exactly one way up to order, and that uniqueness is what makes gcd, lcm and divisor counting computable from exponents.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Test primality by trial division to √nIf n has no prime factor at or below √n, it is prime — any factorisation would have a factor that small.
  2. Factorise by dividing out small primesRepeatedly divide by 2, then 3, 5, 7 … until the quotient is 1.
  3. Read divisor facts off the exponentsFor n = p₁^a₁…p_k^a_k, the number of divisors is Π(aᵢ+1).
  4. Compute gcd and lcm from exponentsgcd takes the minimum exponent of each prime, lcm the maximum.

Worked example

Factorise 360 and find how many positive divisors it has.

  1. 360 = 2 × 180 = 4 × 90 = 8 × 45.
  2. 45 = 9 × 5 = 3² × 5.
  3. So 360 = 2³ × 3² × 5¹.
  4. Divisor count: (3+1)(2+1)(1+1).

Answer. 360 = 2³·3²·5, with 4 × 3 × 2 = 24 positive divisors.

Where marks get dropped

These are the specific errors that cost credit on primes & unique factorisation questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new primes & unique factorisation problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Number Theory mastery is tracked so you know when this is exam-ready.

Primes & unique factorisation — frequently asked questions

Why is 1 not prime?

Because unique factorisation would fail: 6 = 2·3 = 1·2·3 = 1·1·2·3 and so on. Excluding 1 keeps the factorisation unique.

How many primes are there?

Infinitely many. Euclid’s proof: given any finite list, p₁…p_n + 1 has a prime factor not on the list.

Why stop trial division at √n?

If n = ab with both factors above √n then ab > n, a contradiction. So the smaller factor is at most √n.

The rest of Number Theory

Divisibility, primes, gcd, modular arithmetic. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make primes & unique factorisation exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →