Every count­ing num­ber can be built by mul­ti­ply­ing. Some num­bers can be built in many ways; 1212 is 2×62 \times 6 and also 3×43 \times 4. Oth­ers can only be built as one times them­selves. Those are the prime num­bers, and they are the build­ing blocks of all the rest. You will use them when you find the H.C.F and L.C.M, when you can­cel frac­tions, and in later classes when you fac­torise.

Count­ing the fac­tors

You already know what a fac­tor is. A fac­tor of a num­ber divides it exactly. Noth­ing is left over. The fac­tors of 66 are 1,2,3,61, 2, 3, 6. The fac­tors of 1212 are 1,2,3,4,6,121, 2, 3, 4, 6, 12. Now we do just one new thing with that idea: we count them.

11 divides every num­ber. And every num­ber divides itself. Those two fac­tors come free. So here is the ques­tion that mat­ters. Does the num­ber have any oth­ers?

That one ques­tion sorts the nat­ural num­bers into three piles. The nat­ural num­bers are the ones you count with. You start at one and keep going for ever. The three piles have names.

Prime num­bers

Here is the def­i­n­i­tion. A nat­ural num­ber greater than 11 is a prime num­ber if it has only two divi­sors (fac­tors): 11 and itself.

Read it slowly. Every part of it does a job. Two divi­sors, not one and not three. 11 and itself says which two they must be. And greater than 11 keeps 11 out. The part called Where 11 belongs shows why.

Here are five prime num­bers. Their fac­tors are writ­ten out in full.

Prime num­ber All its fac­tors How many
22 1,21, 2 two
33 1,31, 3 two
55 1,51, 5 two
77 1,71, 7 two
1111 1,111, 11 two

Every row has exactly two. Look at 77. Noth­ing else will divide it: not 22, not 33, not 44, not 55, not 66. So 77 keeps just the two fac­tors that every num­ber has. That is what makes a num­ber prime. Not that it is spe­cial. Just that noth­ing else got in.

See­ing it with coun­ters

Here is a way to see the dif­fer­ence. Take some coun­ters and try to lay them out as a rec­tan­gle with at least one full row. Each rec­tan­gle you can make gives you a pair of fac­tors.

Seven counters can only form one row, 1 x 7, so 7 is prime; twelve counters form rectangles 1 x 12, 2 x 6 and 3 x 4, so 12 is composite.
Seven coun­ters make only one rec­tan­gle. Twelve coun­ters make three.

Seven coun­ters will only lie in a sin­gle row of seven. Try two rows and one counter is left over. Try three rows and one is left over again. So the only fac­tors are 11 and 77. Twelve coun­ters, though, make a row of twelve, two rows of six and three rows of four. Those three rec­tan­gles give the six fac­tors 1,2,3,4,6,121, 2, 3, 4, 6, 12.

Remem­ber. A prime num­ber has exactly two fac­tors: 11 and itself. Not one fac­tor. Not three. Exactly two.

Com­pos­ite num­bers

Here is the def­i­n­i­tion, the plain way round. A nat­ural num­ber which has more than two divi­sors (fac­tors) is a com­pos­ite num­ber. It can also be said the other way round. A nat­ural num­ber which is nei­ther 11 nor prime is called a com­pos­ite num­ber. That says two things. The num­ber is not 11. And it is not prime. Every other count­ing num­ber is com­pos­ite.

Here are eight com­pos­ite num­bers. Take 44 first. The fac­tors (divi­sors) of 44 are 1,2,41, 2, 4. That is three fac­tors. Three is more than two. So 44 is com­pos­ite.

The same count­ing for the rest of them.

Com­pos­ite num­ber All its fac­tors How many
44 1,2,41, 2, 4 three
66 1,2,3,61, 2, 3, 6 four
88 1,2,4,81, 2, 4, 8 four
99 1,3,91, 3, 9 three
1010 1,2,5,101, 2, 5, 10 four
1212 1,2,3,4,6,121, 2, 3, 4, 6, 12 six
1414 1,2,7,141, 2, 7, 14 four
1515 1,3,5,151, 3, 5, 15 four

Notice how lit­tle it takes. To show that a num­ber is com­pos­ite, you do not need all of its fac­tors. One extra fac­tor is enough. Then you may stop. Take 99. It is not even, so 22 will never divide it. But 33 does. That third fac­tor set­tles it. The fac­tors of 99 are 1,3,91, 3, 9. Three fac­tors, and three is more than two.

Remem­ber. A com­pos­ite num­ber has more than two fac­tors. Find one more fac­tor besides 11 and the num­ber itself. That is enough to prove it.

A worked exam­ple: 2424

To list every fac­tor with­out miss­ing any, work in pairs. Start at 11 and go up, writ­ing each fac­tor with its part­ner.

24=1×24=2×12=3×8=4×6\begin{aligned}24 &= 1 \times 24 \\ &= 2 \times 12 \\ &= 3 \times 8 \\ &= 4 \times 6\end{aligned}

Five does not divide 2424. The next num­ber to try is 66, but 66 is already in the list as the part­ner of 44. Once the pairs start to repeat, you have found them all. So the fac­tors of 2424 are 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24. That is eight fac­tors, so 2424 is com­pos­ite.

Now try 4949. It is odd, so 22 does not divide it. Nor do 33, 44, 55 or 66. But 49=7×749 = 7 \times 7. Here the pair is one num­ber used twice, so it adds just one fac­tor. The fac­tors are 1,7,491, 7, 49: three of them, so 4949 is com­pos­ite.

Where 11 belongs

11 is nei­ther prime nor com­pos­ite. Here is why. The fac­tors of 11 are 11. That is one fac­tor, and only one. Look at the two free fac­tors of 11. The first one is 11. The sec­ond one is the num­ber itself, which is also 11. They are the same num­ber. So they fold into one.

So 11 fails both tests at once. It does not have two fac­tors. So it can­not be prime. It does not have more than two. So it can­not be com­pos­ite. It sits on its own. That is the third pile.

Remem­ber. 11 is nei­ther prime nor com­pos­ite. It has one fac­tor only. Prime asks for two. Com­pos­ite asks for more than two.

22 is the only even prime num­ber

The two def­i­n­i­tions you have just read set­tle some­thing about even num­bers. 22 divides every even num­ber. So 22 is a fac­tor of every even num­ber. Now take any even num­ber big­ger than 22. Its fac­tor list holds 11. It holds 22. It holds the num­ber itself. Those are three dif­fer­ent num­bers. Three is more than two. So the num­ber can­not be prime.

The com­pos­ite table above shows it hap­pen­ing. The fac­tors of 44 are 1,2,41, 2, 4. The fac­tors of 66 are 1,2,3,61, 2, 3, 6. The fac­tors of 88 are 1,2,4,81, 2, 4, 8. The same 22 caught all three. That is why each one has more than two fac­tors.

22 is the one even num­ber this argu­ment can­not touch. Look at what hap­pens with 22. The free fac­tor the num­ber itself is 22. The fac­tor 22 is that same num­ber. So noth­ing new is added. The list stays at 1,21, 2. That is exactly two fac­tors. So 22 is prime. Every other even num­ber is ruled out. So every prime after 22 is odd.

Remem­ber. 22 is the only even prime num­ber. Every even num­ber big­ger than 22 has 11, 22 and itself among its fac­tors. That is more than two. So no other even num­ber can be prime.

Four things to remem­ber

  1. The small­est prime num­ber is 22. 11 is not prime. So 22 is the first count­ing num­ber with exactly two fac­tors.
  2. The small­est com­pos­ite num­ber is 44. 11 is nei­ther. 22 and 33 are prime. So 44 is the first num­ber to pick up a third fac­tor.
  3. 11 is nei­ther prime nor com­pos­ite.
  4. There are 2525 prime num­bers below 100100.

Here is the list. Read it across each row.

22 1313 3131 5353 7373
33 1717 3737 5959 7979
55 1919 4141 6161 8383
77 2323 4343 6767 8989
1111 2929 4747 7171 9797
A hundred square from 1 to 100 with the 25 prime numbers shaded green, composite numbers left white, and the number 1 shaded grey as neither.
The hun­dred square with every prime shaded. Notice that after 2, no prime sits in an even col­umn.

Twenty-five alto­gether. Count them ten at a time. That is a good way to check you have them all. It also shows how unevenly they fall.

Ten num­bers The primes in it How many
11 to 1010 2,3,5,72, 3, 5, 7 four
1111 to 2020 11,13,17,1911, 13, 17, 19 four
2121 to 3030 23,2923, 29 two
3131 to 4040 31,3731, 37 two
4141 to 5050 41,43,4741, 43, 47 three
5151 to 6060 53,5953, 59 two
6161 to 7070 61,6761, 67 two
7171 to 8080 71,73,7971, 73, 79 three
8181 to 9090 83,8983, 89 two
9191 to 100100 9797 one

There are four in the first ten. There is only one in the last. But the count does not fall steadily on the way. The for­ties hold three. The sev­en­ties hold three too. Noth­ing you have learned so far tells you where the next prime will fall. You learn the list.

Prov­ing that a num­ber is com­pos­ite

One extra fac­tor is all it takes. You have just learned the divis­i­bil­ity rules. Each rule is a quick test. It tells you whether some small num­ber divides your num­ber. You do not have to do the divid­ing sum. Those tests are made for find­ing a fac­tor. Try 9191. It looks like a prime. It is not.

Start with the easy tests. 9191 ends in 11. The tests for 22, for 55 and for 1010 all look at the last digit. A last digit of 11 passes none of them. So 22 does not divide 9191. Nor does 55. Nor does 1010.

Next add the dig­its: 9+1=109 + 1 = 10. The tests for 33 and for 99 use that total. But 33 does not divide 1010. So 33 does not divide 9191 either. Nor does 99.

The test for 66 asks for two things at once. Both 22 and 33 must divide the num­ber. 9191 has just failed both. So 66 does not divide it.

The test for 44 looks at the last two dig­its. The test for 88 looks at the last three. But 9191 has only two dig­its. So both tests look at the whole of 9191. And 44 does not divide 9191. Nor does 88.

That leaves 77 and 1111 to try.

Now try the rule for 77. Here is what it says. Take the last digit and dou­ble it. Then take that away from the num­ber the other dig­its make. Look at what you are left with. Is it 00? Is it in the 77 times table? Then 77 divides the num­ber.

Test­ing 9191 with the rule for 77

9−2×1=9−2=79 - 2 \times 1 = 9 - 2 = 7

77 is in the 77 times table. So 77 divides 9191. Divide it out. Now you can see what 9191 was hid­ing.

What 9191 really is

91=7×1391 = 7 \times 13

So the fac­tors of 9191 are 1,7,13,911, 7, 13, 91. That is four fac­tors. So 9191 is com­pos­ite. That is why it is miss­ing from the list of twenty-five.

The other way round is harder. It is worth being hon­est about that. To show a num­ber is com­pos­ite, you find one fac­tor. To show a num­ber is prime, you need much more. You must know that no extra fac­tor exists at all. Fail­ing to find one is not the same as there being none. That is why the twenty-five primes below 100100 are worth learn­ing by heart. Know­ing them is quicker than work­ing them out again every time.

Remem­ber. One extra fac­tor proves a num­ber com­pos­ite. Prov­ing a num­ber prime is a dif­fer­ent kind of job. So learn the twenty-five.

A sec­ond worked exam­ple: 119119

This num­ber is above 100100, so the list of twenty-five can­not help. Work through the tests. It ends in 99, so 22, 55 and 1010 do not divide it. Its dig­its add to 1+1+9=111 + 1 + 9 = 11, which 33 does not divide, so nei­ther 33 nor 99 divides it.

Now the rule for 77. Dou­ble the last digit and take it from the rest.

2×9−11=18−11=72 \times 9 - 11 = 18 - 11 = 7

Here twice the units digit is the big­ger num­ber, so take the remain­ing part away from it. The dif­fer­ence is 77. So 77 divides 119119, and 119=7×17119 = 7 \times 17. The fac­tors are 1,7,17,1191, 7, 17, 119, so 119119 is com­pos­ite.

The first twenty num­bers, sorted

Here is every­thing gath­ered in one place. The table holds every num­ber from 11 to 2020, with its fac­tors, how many fac­tors there are, and which pile that puts it in. Noth­ing here is new, but it is handy to see it all together.

Num­ber All its fac­tors How many Which pile
11 11 one nei­ther
22 1,21, 2 two prime
33 1,31, 3 two prime
44 1,2,41, 2, 4 three com­pos­ite
55 1,51, 5 two prime
66 1,2,3,61, 2, 3, 6 four com­pos­ite
77 1,71, 7 two prime
88 1,2,4,81, 2, 4, 8 four com­pos­ite
99 1,3,91, 3, 9 three com­pos­ite
1010 1,2,5,101, 2, 5, 10 four com­pos­ite
1111 1,111, 11 two prime
1212 1,2,3,4,6,121, 2, 3, 4, 6, 12 six com­pos­ite
1313 1,131, 13 two prime
1414 1,2,7,141, 2, 7, 14 four com­pos­ite
1515 1,3,5,151, 3, 5, 15 four com­pos­ite
1616 1,2,4,8,161, 2, 4, 8, 16 five com­pos­ite
1717 1,171, 17 two prime
1818 1,2,3,6,9,181, 2, 3, 6, 9, 18 six com­pos­ite
1919 1,191, 19 two prime
2020 1,2,4,5,10,201, 2, 4, 5, 10, 20 six com­pos­ite

Read the last col­umn down­wards. 11 stands alone at the top. The primes are scat­tered through the rest. They fol­low no pat­tern you could pre­dict. Every­thing else is com­pos­ite. Now read the mid­dle col­umn. You can see just why each num­ber landed where it did.

Com­mon mis­takes

  • Call­ing 11 a prime num­ber. It has only one fac­tor, and a prime needs exactly two.
  • Think­ing every odd num­ber is prime. 99, 1515, 2121, 4949 and 9191 are all odd and all com­pos­ite.
  • Think­ing 22 can­not be prime because it is even. It has exactly two fac­tors, 11 and 22.
  • Stop­ping too soon when test­ing. Not being divis­i­ble by 22, 33 and 55 does not make a num­ber prime; 4949 and 9191 are caught by 77.
  • Count­ing a repeated fac­tor twice. The fac­tors of 2525 are 1,5,251, 5, 25: three, not four.

Key terms

  • Nat­ural num­bers: The count­ing num­bers 1,2,31, 2, 3 and so on.
  • Fac­tor (divi­sor): A num­ber that divides another num­ber exactly, leav­ing noth­ing over.
  • Prime num­ber: A nat­ural num­ber greater than 11 with exactly two fac­tors, 11 and itself.
  • Com­pos­ite num­ber: A nat­ural num­ber with more than two fac­tors.
  • Divis­i­bil­ity rule: A quick test that shows whether one num­ber divides another with­out doing the divi­sion.
  • Fac­tor pair: Two fac­tors that mul­ti­ply to give the num­ber, such as 33 and 88 for 2424.

Prac­tice

  1. Write all the fac­tors of 21. Is it prime or com­pos­ite?
  2. Write all the fac­tors of 23. Is it prime or com­pos­ite?
  3. Write all the fac­tors of 25. Is it prime or com­pos­ite?
  4. Write all the fac­tors of 29. Is it prime or com­pos­ite?
  5. Write all the fac­tors of 39. Is it prime or com­pos­ite?
  6. Which of 41, 45, 49 and 53 are prime?
  7. Which of 57, 59, 63 and 67 are prime?
  8. 87 is not a prime num­ber. Find a fac­tor that proves it.
  9. Use the rule for 7 to show that 133 is com­pos­ite.
  10. Why is 1 nei­ther prime nor com­pos­ite?
  11. A num­ber has exactly three fac­tors. Is it prime or com­pos­ite?
  12. Which is the only prime num­ber between 90 and 100?

Answers

Show answers
  1. 1,3,7,211, 3, 7, 21. Com­pos­ite.
  2. 1,231, 23. Prime.
  3. 1,5,251, 5, 25. Com­pos­ite.
  4. 1,291, 29. Prime.
  5. 1,3,13,391, 3, 13, 39. Com­pos­ite.
  6. 41 and 53. 45=5×945 = 5 \times 9 and 49=7×749 = 7 \times 7.
  7. 59 and 67. 57=3×1957 = 3 \times 19 and 63=7×963 = 7 \times 9.
  8. 8+7=158 + 7 = 15 is divis­i­ble by 3, so 3 is a fac­tor: 87=3×2987 = 3 \times 29.
  9. Twice 3 is 6, and 13−6=713 - 6 = 7, which is a mul­ti­ple of 7. So 133=7×19133 = 7 \times 19, with fac­tors 1,7,19,1331, 7, 19, 133.
  10. 1 has only one fac­tor. A prime needs exactly two and a com­pos­ite needs more than two.
  11. Com­pos­ite, because it has more than two fac­tors.
  12. 97