Once you can list the fac­tors of a num­ber and tell a prime from a com­pos­ite num­ber, you start to notice pat­terns among num­bers. Some num­bers have fac­tors that add up in a spe­cial way. Some pairs of num­bers have noth­ing in com­mon. Some primes come in close pairs. Math­e­mati­cians gave these pat­terns names, and you will meet the names again when you sim­plify frac­tions (a frac­tion is in its sim­plest form exactly when its top and bot­tom are coprimes) and when you study primes more deeply.

You already know how to list all the fac­tors of a num­ber. You know that a prime num­ber has just two fac­tors, 11 and itself. So you need noth­ing new here. We sim­ply give names to three things you can already spot: a num­ber whose fac­tors add up to twice itself, a pair of num­bers with noth­ing in com­mon, and a pair of primes that stand close together.

Per­fect num­bers

Add up all the divi­sors (fac­tors) of a num­ber. If the sum is twice the num­ber, it is a per­fect num­ber.

One word here does all the work: all. Every num­ber is a fac­tor of itself. That is why a fac­tor list ends with the num­ber itself. So the num­ber sits inside the sum. That is why the rule asks for twice the num­ber. It does not ask for the num­ber. Take 66. Its fac­tors are 1,2,3,61, 2, 3, 6. The 66 at the end is 66 itself. Add the rest and you get 66 again. So the sum is two sixes.

The two per­fect num­bers to know are 66 and 2828. Here is the check for each, writ­ten out in full.

6

1+2+3+6=12=2×6\begin{aligned}1 + 2 + 3 + 6 &= 12 \\ &= 2 \times 6\end{aligned}

28

1+2+4+7+14+28=56=2×28\begin{aligned}1 + 2 + 4 + 7 + 14 + 28 &= 56 \\ &= 2 \times 28\end{aligned}

Now take the num­ber itself out of each sum. Look at what is left. For 66 that leaves 1+2+3=61 + 2 + 3 = 6. For 2828 it leaves 1+2+4+7+14=281 + 2 + 4 + 7 + 14 = 28. So a per­fect num­ber is as big as its other fac­tors put together. That says the same thing as the rule. It just says it the other way round.

Most num­bers fail this test. It helps to watch them fail. They miss in both direc­tions.

Num­ber All its fac­tors Their sum Twice the num­ber Per­fect?
44 1,2,41, 2, 4 77 88 no, the sum is too small
66 1,2,3,61, 2, 3, 6 1212 1212 yes
88 1,2,4,81, 2, 4, 8 1515 1616 no, the sum is too small
1212 1,2,3,4,6,121, 2, 3, 4, 6, 12 2828 2424 no, the sum is too big
2828 1,2,4,7,14,281, 2, 4, 7, 14, 28 5656 5656 yes
Bar diagram: a bar of length 6 matched by bars 1, 2 and 3 laid end to end, and a bar of length 28 matched by bars 1, 2, 4, 7 and 14.
Leave out the num­ber itself and the other fac­tors of 6 and of 28 fill exactly the same length.

Worked exam­ple: is 18 per­fect?

List the fac­tors in pairs so that none is missed: 1×181 \times 18, 2×92 \times 9, 3×63 \times 6. So the fac­tors are 1,2,3,6,9,181, 2, 3, 6, 9, 18.

1+2+3+6+9+18=392×18=36\begin{aligned}1 + 2 + 3 + 6 + 9 + 18 &= 39 \\ 2 \times 18 &= 36\end{aligned}

The sum is 3939, which is more than 3636, so 1818 is not per­fect. Per­fect num­bers are rare: after 66 and 2828 the next one is 496496, and the one after that is 81288128.

Remem­ber. A num­ber is per­fect when all its fac­tors add up to twice the num­ber. Count the num­ber itself as a fac­tor. 66 and 2828 are the two to know.

Coprimes

Two num­bers are coprimes when their only com­mon divi­sor (fac­tor) is 11. They have a sec­ond name as well: rel­a­tively prime. It is just another name for the same thing.

So two num­bers are coprimes when only 11 goes into both. Three things are worth fix­ing in your mind. The word turns up else­where too. It is easy to hear it wrong. First, it is about a pair. No sin­gle num­ber is coprime on its own. Sec­ond, it does not say that a num­ber is prime. The table below has coprime pairs with no prime in them. Third, the two fac­tor lists give you the answer. Write out both lists. If 11 is the only num­ber in both, they are coprimes. If any other num­ber is in both, they are not.

Look at any fac­tor list you have ever writ­ten. 11 is at the front of it. Every num­ber can be divided by 11. So any two num­bers at all share 11. Coprime says they share noth­ing else. Write out both lists and hold them side by side. Then 11 is the only num­ber in both.

Two sim­ple exam­ples are 44 and 55, and 22 and 33. The table adds four more pairs, so you can watch the test pass and fail.

The pair Fac­tors of the first Fac­tors of the sec­ond In both lists Coprimes?
44 and 55 1,2,41, 2, 4 1,51, 5 11 yes
22 and 33 1,21, 2 1,31, 3 11 yes
99 and 1010 1,3,91, 3, 9 1,2,5,101, 2, 5, 10 11 yes
88 and 1515 1,2,4,81, 2, 4, 8 1,3,5,151, 3, 5, 15 11 yes
66 and 88 1,2,3,61, 2, 3, 6 1,2,4,81, 2, 4, 8 11 and 22 no
1414 and 2121 1,2,7,141, 2, 7, 14 1,3,7,211, 3, 7, 21 11 and 77 no

Two rows are worth a sec­ond look. Nei­ther 99 nor 1010 is a prime num­ber. Nor is 88 or 1515. Yet both pairs are coprimes. The word says noth­ing about either num­ber being prime. It says only that the two share no fac­tor. The fail­ing rows show what shar­ing looks like. 66 and 88 are both even, so 22 is in both lists. 1414 and 2121 are both built from 77.

Venn diagram of factors: 2 and 14 only in the circle for 14, 3 and 21 only in the circle for 21, and 1 and 7 in the overlap, so 14 and 21 are not coprimes.
The over­lap holds 7 as well as 1, so 14 and 21 are not coprimes.

Worked exam­ple: are 25 and 36 coprimes?

Fac­tors of 2525: 1,5,251, 5, 25. Fac­tors of 3636: 1,2,3,4,6,9,12,18,361, 2, 3, 4, 6, 9, 12, 18, 36. The only num­ber in both lists is 11, so 2525 and 3636 are coprimes, even though nei­ther is prime.

A quick first check helps. If both num­bers are even, 22 is shared and they can­not be coprimes. If both end in 00 or 55, 55 is shared. Two num­bers next to each other, such as 99 and 1010, are always coprimes, because any num­ber that divides both would also have to divide the gap between them, which is 11.

Remem­ber. Coprime is about a pair, never one num­ber on its own. Write out both fac­tor lists. If 11 is the only num­ber in both, they are coprimes.

Twin primes

Twin primes are two prime num­bers that dif­fer by 22.

Twin primes are writ­ten as pairs in brack­ets. So (3,5)(3, 5) means the two num­bers 33 and 55 taken together. Some exam­ples are (3,5)(3, 5), (5,7)(5, 7), (11,13)(11, 13) and (41,43)(41, 43). Check the last one. The only fac­tors of 4141 are 11 and 4141. The only fac­tors of 4343 are 11 and 4343. So both are prime. And 43−41=243 - 41 = 2, so they are two apart. Both halves of the test have to pass.

Why 22, and not 11? Because 22 is the only even prime, as you saw in the last les­son. So every prime after 22 is odd. And two odd num­bers are never one apart.

One pair does stand one apart: 22 and 33. Both are prime, because 22 is the even one. They are the only pair like that. They are still not twin primes. Twins must dif­fer by 22. Apart from 22, every prime is odd. So the gap between any two odd primes is 22 or more. No two primes can sit closer than a twin pair does.

The pairs do not stop at (41,43)(41, 43). Here are the prime num­bers up to 5050. The full list of the 2525 primes below 100100 is in the last les­son.

22 77 1717 2929 4141
33 1111 1919 3131 4343
55 1313 2323 3737 4747

Run down that list. For each prime, look for the next one that is only 22 big­ger. Six pairs turn up below 5050. Carry on as far as 100100 and two more turn up. Those are the last ones below 100100.

(3,5)(3, 5) (11,13)(11, 13) (29,31)(29, 31) (59,61)(59, 61)
(5,7)(5, 7) (17,19)(17, 19) (41,43)(41, 43) (71,73)(71, 73)
A hundred square with primes shaded: 3, 5, 7, 11, 13, 17, 19, 29, 31, 41, 43, 59, 61, 71 and 73 in orange as twin primes, the other primes in blue.
The eight twin prime pairs below 100 are the orange squares.

Some pairs almost work. They teach you as much as the pairs that do. (7,9)(7, 9) is two apart, but it fails. The rea­son is that 99 has a third fac­tor: 9=3×39 = 3 \times 3. Its fac­tors are 1,3,91, 3, 9, so it is not prime. (13,15)(13, 15) fails in the same way. Here 15=3×515 = 3 \times 5, and the fac­tors are 1,3,5,151, 3, 5, 15. (89,91)(89, 91) looks right and still fails. This time 91=7×1391 = 7 \times 13. Being two apart is never enough on its own.

Worked exam­ple: are 101 and 103 twin primes?

First the gap: 103−101=2103 - 101 = 2. Now test each num­ber with the small primes 2,3,52, 3, 5 and 77. That is enough, because 11×11=12111 \times 11 = 121 is already big­ger than both num­bers, so any fac­tor pair would need a part­ner smaller than 1111. Nei­ther num­ber is even. The digit sums are 22 and 44, so 33 does not divide either. Nei­ther ends in 00 or 55. And 101=7×14+3101 = 7 \times 14 + 3, 103=7×14+5103 = 7 \times 14 + 5. Both are prime, so (101,103)(101, 103) is a twin prime pair.

Remem­ber. Twin primes are two primes with just one num­ber between them. Check that both num­bers are prime before you call them twins.

All twin primes are coprimes

Here is one more fact about twin primes: all twin primes are coprimes. You do not have to just believe it. The two rules you have just read prove it.

A prime brings only two num­bers to its fac­tor list: 11 and itself. So the fac­tors of 1111 are 1,111, 11. The fac­tors of 1313 are 1,131, 13. Now put the two lists side by side. 11 is in both. 1111 is not in the sec­ond list. That is because 1313 is prime and 1111 is not 1313. 1313 is not in the first list, for the same rea­son. So only 11 is shared. And that is just what coprime means.

Twin pair Fac­tors of the first Fac­tors of the sec­ond In both lists
(3,5)(3, 5) 1,31, 3 1,51, 5 11
(11,13)(11, 13) 1,111, 11 1,131, 13 11
(41,43)(41, 43) 1,411, 41 1,431, 43 11

Notice what the proof never used: the gap of 22. It used only two facts. Both num­bers are prime. And they are two dif­fer­ent num­bers. Twin primes are always two dif­fer­ent primes. So the note holds for every twin pair there will ever be. It is not just about the three pairs above.

Remem­ber. All twin primes are coprimes. Two dif­fer­ent primes have noth­ing to share but 11.

Com­mon mis­takes

  • Leav­ing the num­ber out of its own fac­tor list. Then you must com­pare the sum with the num­ber, not with twice the num­ber. Mix­ing the two meth­ods gives wrong answers.
  • Call­ing one num­ber coprime. Coprime always describes a pair, such as 88 and 1515.
  • Think­ing coprimes must be prime. 99 and 1616 are coprimes, and nei­ther is prime.
  • Check­ing only the gap for twin primes. (37,39)(37, 39) is two apart, but 39=3×1339 = 3 \times 13, so it is not a twin pair.
  • Call­ing (2, 3) twin primes. They are one apart, not two apart.
  • Miss­ing a fac­tor. List fac­tors in pairs, 1×361 \times 36, 2×182 \times 18 and so on, until the pairs meet.

Key terms

  • Fac­tor (divi­sor): A num­ber that divides another exactly. The fac­tors of 66 are 1,2,3,61, 2, 3, 6.
  • Prime num­ber: A num­ber with exactly two fac­tors, 11 and itself.
  • Com­pos­ite num­ber: A num­ber with more than two fac­tors, such as 99.
  • Per­fect num­ber: A num­ber whose fac­tors, itself included, add up to twice the num­ber.
  • Coprimes (rel­a­tively prime): Two num­bers whose only com­mon fac­tor is 11.
  • Twin primes: Two prime num­bers that dif­fer by 22.
  • Com­mon fac­tor: A num­ber that is a fac­tor of both num­bers in a pair.

Prac­tice

  1. Is 6 a per­fect num­ber? Show the check.
  2. Is 16 a per­fect num­ber?
  3. Is 20 a per­fect num­ber?
  4. Are 4 and 9 coprimes?
  5. Are 8 and 12 coprimes?
  6. Are 15 and 25 coprimes?
  7. Are 14 and 15 coprimes?
  8. Are 17 and 19 twin primes?
  9. Are 23 and 25 twin primes?
  10. Are 13 and 17 twin primes?
  11. Show that 59 and 61 are coprimes by writ­ing out both fac­tor lists.
  12. Find a pair of num­bers which are coprimes although nei­ther of them is prime.

Answers

Show answers
  1. Yes. 1+2+3+6=12=2×61 + 2 + 3 + 6 = 12 = 2 \times 6.
  2. No. 1+2+4+8+16=311 + 2 + 4 + 8 + 16 = 31, but 2×16=322 \times 16 = 32. The sum is too small.
  3. No. 1+2+4+5+10+20=421 + 2 + 4 + 5 + 10 + 20 = 42, but 2×20=402 \times 20 = 40. The sum is too big.
  4. Yes. The fac­tors are 1,2,41, 2, 4 and 1,3,91, 3, 9. Only 1 is shared.
  5. No. They share 2 and 4.
  6. No. They share 5.
  7. Yes. The fac­tors are 1,2,7,141, 2, 7, 14 and 1,3,5,151, 3, 5, 15. Only 1 is shared.
  8. Yes. Both are prime and they dif­fer by 2.
  9. No. 25=5×525 = 5 \times 5 is not prime.
  10. No. Both are prime, but they dif­fer by 4, not 2.
  11. The fac­tors of 59 are 1,591, 59 and the fac­tors of 61 are 1,611, 61. Only 1 is in both lists, so they are coprimes.
  12. One answer is 8 and 9. The fac­tors are 1,2,4,81, 2, 4, 8 and 1,3,91, 3, 9, so only 1 is shared, and nei­ther num­ber is prime. Other pairs such as 9 and 10, or 4 and 9, are also cor­rect.