< Return to Video

Prime Numbers

  • 0:00 - 0:02
    In this video, I want
    to talk a little bit
  • 0:02 - 0:06
    about what it means
    to be a prime number.
  • 0:06 - 0:08
    And what you'll
    see in this video,
  • 0:08 - 0:10
    or you'll hopefully
    see in this video,
  • 0:10 - 0:12
    is it's a pretty
    straightforward concept.
  • 0:12 - 0:14
    But as you progress through
    your mathematical careers,
  • 0:14 - 0:17
    you'll see that there's actually
    fairly sophisticated concepts
  • 0:17 - 0:20
    that can be built on top of
    the idea of a prime number.
  • 0:20 - 0:22
    And that includes the
    idea of cryptography.
  • 0:22 - 0:25
    And maybe some of the encryption
    that your computer uses
  • 0:25 - 0:27
    right now could be
    based on prime numbers.
  • 0:27 - 0:29
    If you don't know
    what encryption means,
  • 0:29 - 0:30
    you don't have to worry
    about it right now.
  • 0:30 - 0:34
    You just need to know the prime
    numbers are pretty important.
  • 0:34 - 0:36
    So I'll give you a definition.
  • 0:36 - 0:38
    And the definition might
    be a little confusing,
  • 0:38 - 0:40
    but when we see
    it with examples,
  • 0:40 - 0:43
    it should hopefully be
    pretty straightforward.
  • 0:43 - 0:49
    So a number is prime if
    it is a natural number--
  • 0:49 - 0:52
    and a natural number, once
    again, just as an example,
  • 0:52 - 0:55
    these are like the numbers 1, 2,
    3, so essentially the counting
  • 0:55 - 0:57
    numbers starting
    at 1, or you could
  • 0:57 - 0:58
    say the positive integers.
  • 0:58 - 1:12
    It is a natural number divisible
    by exactly two numbers,
  • 1:12 - 1:13
    or two other natural numbers.
  • 1:13 - 1:15
    Actually I shouldn't
    say two other,
  • 1:15 - 1:18
    I should say two
    natural numbers.
  • 1:18 - 1:20
    So it's not two other
    natural numbers--
  • 1:20 - 1:24
    divisible by exactly
    two natural numbers.
  • 1:24 - 1:31
    One of those numbers is itself,
    and the other one is one.
  • 1:31 - 1:33
    Those are the two numbers
    that it is divisible by.
  • 1:33 - 1:35
    And that's why I didn't
    want to say exactly
  • 1:35 - 1:37
    two other natural numbers,
    because one of the numbers
  • 1:37 - 1:39
    is itself.
  • 1:39 - 1:40
    And if this doesn't
    make sense for you,
  • 1:40 - 1:42
    let's just do some
    examples here,
  • 1:42 - 1:45
    and let's figure out if some
    numbers are prime or not.
  • 1:45 - 1:49
    So let's start with the smallest
    natural number-- the number 1.
  • 1:49 - 1:52
    So you might say, look,
    1 is divisible by 1
  • 1:52 - 1:54
    and it is divisible by itself.
  • 1:54 - 1:57
    You might say, hey,
    1 is a prime number.
  • 1:57 - 1:59
    But remember, part
    of our definition--
  • 1:59 - 2:03
    it needs to be divisible by
    exactly two natural numbers.
  • 2:03 - 2:07
    1 is divisible by only one
    natural number-- only by 1.
  • 2:07 - 2:09
    So 1, although it might be
    a little counter intuitive
  • 2:09 - 2:16
    is not prime.
  • 2:16 - 2:17
    Let's move on to 2.
  • 2:19 - 2:26
    So 2 is divisible by
    1 and by 2 and not
  • 2:26 - 2:28
    by any other natural numbers.
  • 2:28 - 2:30
    So it seems to meet
    our constraint.
  • 2:30 - 2:34
    It's divisible by exactly
    two natural numbers-- itself,
  • 2:34 - 2:36
    that's 2 right there, and 1.
  • 2:36 - 2:38
    So 2 is prime.
  • 2:41 - 2:43
    And I'll circle
    the prime numbers.
  • 2:43 - 2:43
    I'll circle them.
  • 2:43 - 2:45
    Well actually, let me do
    it in a different color,
  • 2:45 - 2:47
    since I already used
    that color for the-- I'll
  • 2:47 - 2:48
    just circle them.
  • 2:48 - 2:52
    I'll circle the
    numbers that are prime.
  • 2:52 - 2:54
    And 2 is interesting
    because it is
  • 2:54 - 2:56
    the only even number
    that is prime.
  • 2:56 - 2:58
    If you think about it,
    any other even number
  • 2:58 - 3:00
    is also going to be
    divisible by 2, above
  • 3:00 - 3:02
    and beyond 1 and itself.
  • 3:02 - 3:03
    So it won't be prime.
  • 3:03 - 3:05
    We'll think about that
    more in future videos.
  • 3:05 - 3:07
    Let's try out 3.
  • 3:07 - 3:11
    Well, 3 is definitely
    divisible by 1 and 3.
  • 3:11 - 3:13
    And it's really not divisible
    by anything in between.
  • 3:13 - 3:19
    It's not divisible by 2, so
    3 is also a prime number.
  • 3:19 - 3:21
    Let's try 4.
  • 3:21 - 3:23
    I'll switch to
    another color here.
  • 3:23 - 3:24
    Let's try 4.
  • 3:24 - 3:28
    Well, 4 is definitely
    divisible by 1 and 4.
  • 3:28 - 3:30
    But it's also divisible by 2.
  • 3:30 - 3:31
    2 times 2 is 4.
  • 3:31 - 3:33
    It's also divisible by 2.
  • 3:33 - 3:39
    So it's divisible by three
    natural numbers-- 1, 2, and 4.
  • 3:39 - 3:43
    So it does not meet our
    constraints for being prime.
  • 3:43 - 3:47
    Let's try out 5.
  • 3:47 - 3:49
    So 5 is definitely
    divisible by 1.
  • 3:49 - 3:51
    It's not divisible by 2.
  • 3:51 - 3:52
    It's not divisible by 3.
  • 3:52 - 3:56
    It's not exactly divisible by 4.
  • 3:56 - 3:59
    You could divide them into it,
    but you would get a remainder.
  • 3:59 - 4:02
    But it is exactly
    divisible by 5, obviously.
  • 4:02 - 4:06
    So once again, it's divisible
    by exactly two natural numbers--
  • 4:06 - 4:08
    1 and 5.
  • 4:08 - 4:12
    So, once again, 5 is prime.
  • 4:12 - 4:13
    Let's keep going,
    just so that we
  • 4:13 - 4:15
    see if there's any
    kind of a pattern here.
  • 4:15 - 4:17
    And then maybe I'll
    try a really hard one
  • 4:17 - 4:19
    that tends to trip people up.
  • 4:19 - 4:23
    So let's try the number.
  • 4:23 - 4:24
    6.
  • 4:24 - 4:26
    It is divisible by 1.
  • 4:26 - 4:29
    It is divisible by 2.
  • 4:29 - 4:30
    It is divisible by 3.
  • 4:30 - 4:33
    Not 4 or 5, but it
    is divisible by 6.
  • 4:33 - 4:36
    So it has four natural
    number factors.
  • 4:36 - 4:38
    I guess you could
    say it that way.
  • 4:38 - 4:40
    And so it does not have
    exactly two numbers
  • 4:40 - 4:41
    that it is divisible by.
  • 4:41 - 4:45
    It has four, so it is not prime.
  • 4:45 - 4:47
    Let's move on to 7.
  • 4:47 - 4:54
    7 is divisible by 1, not 2,
    not 3, not 4, not 5, not 6.
  • 4:54 - 4:56
    But it's also divisible by 7.
  • 4:56 - 4:59
    So 7 is prime.
  • 4:59 - 5:01
    I think you get the
    general idea here.
  • 5:01 - 5:04
    How many natural
    numbers-- numbers
  • 5:04 - 5:07
    like 1, 2, 3, 4, 5, the numbers
    that you learned when you were
  • 5:07 - 5:10
    two years old, not including 0,
    not including negative numbers,
  • 5:10 - 5:13
    not including fractions and
    irrational numbers and decimals
  • 5:13 - 5:17
    and all the rest, just regular
    counting positive numbers.
  • 5:17 - 5:19
    If you have only two
    of them, if you're only
  • 5:19 - 5:23
    divisible by yourself and
    one, then you are prime.
  • 5:23 - 5:25
    And the way I think
    about it-- if we
  • 5:25 - 5:27
    don't think about the
    special case of 1,
  • 5:27 - 5:30
    prime numbers are kind of these
    building blocks of numbers.
  • 5:30 - 5:32
    You can't break
    them down anymore
  • 5:32 - 5:34
    they're almost like the
    atoms-- if you think about what
  • 5:34 - 5:36
    an atom is, or
    what people thought
  • 5:36 - 5:37
    atoms were when
    they first-- they
  • 5:37 - 5:39
    thought it was kind of the
    thing that you couldn't divide
  • 5:39 - 5:39
    anymore.
  • 5:39 - 5:41
    We now know that you
    could divide atoms
  • 5:41 - 5:42
    and, actually, if
    you do, you might
  • 5:42 - 5:44
    create a nuclear explosion.
  • 5:44 - 5:47
    But it's the same idea
    behind prime numbers.
  • 5:47 - 5:50
    In theory-- and in prime
    numbers, it's not theory,
  • 5:50 - 5:51
    we know you can't
    break them down
  • 5:51 - 5:56
    into products of
    smaller natural numbers.
  • 5:56 - 6:00
    Things like 6-- you could
    say, hey, 6 is 2 times 3.
  • 6:00 - 6:01
    You can break it down.
  • 6:01 - 6:05
    And notice we can break it down
    as a product of prime numbers.
  • 6:05 - 6:08
    We've kind of broken
    it down into its parts.
  • 6:08 - 6:10
    7, you can't break
    it down anymore.
  • 6:10 - 6:13
    All you can say is that
    7 is equal to 1 times 7,
  • 6:13 - 6:16
    and in that case, you really
    haven't broken it down much.
  • 6:16 - 6:18
    You just have the 7 there again.
  • 6:18 - 6:19
    6 you can actually
    break it down.
  • 6:19 - 6:22
    4 you can actually break
    it down as 2 times 2.
  • 6:22 - 6:25
    Now with that out of the way,
    let's think about some larger
  • 6:25 - 6:29
    numbers, and think about whether
    those larger numbers are prime.
  • 6:29 - 6:34
    So let's try 16.
  • 6:34 - 6:38
    So clearly, any number is
    divisible by 1 and itself.
  • 6:38 - 6:40
    Any number, any natural
    number you put up here
  • 6:40 - 6:41
    is going to be
    divisible by 1 and 16.
  • 6:41 - 6:43
    So you're always
    going to start with 2.
  • 6:43 - 6:45
    So if you can find anything
    else that goes into this,
  • 6:45 - 6:47
    then you know you're not prime.
  • 6:47 - 6:53
    And 16, you could have 2 times
    8, you could have 4 times 4.
  • 6:53 - 6:55
    So it's got a ton
    of factors here
  • 6:55 - 6:57
    above and beyond
    just the 1 and 16.
  • 6:57 - 6:59
    So 16 is not prime.
  • 6:59 - 7:02
    What about 17?
  • 7:02 - 7:06
    1 and 17 will
    definitely go into 17.
  • 7:06 - 7:07
    2 doesn't go into 17.
  • 7:07 - 7:08
    3 doesn't go.
  • 7:08 - 7:11
    4, 5, 6, 7, 8, 9 10, 11--
    none of those numbers,
  • 7:11 - 7:15
    nothing between 1
    and 17 goes into 17.
  • 7:15 - 7:20
    So 17 is prime.
  • 7:20 - 7:23
    And now I'll give
    you a hard one.
  • 7:23 - 7:25
    This one can trick
    a lot of people.
  • 7:25 - 7:28
    What about 51?
  • 7:28 - 7:30
    Is 51 prime?
  • 7:33 - 7:34
    And if you're
    interested, maybe you
  • 7:34 - 7:36
    could pause the
    video here and try
  • 7:36 - 7:40
    to figure out for yourself
    if 51 is a prime number.
  • 7:40 - 7:45
    If you can find anything
    other than 1 or 51
  • 7:45 - 7:47
    that is divisible into 51.
  • 7:47 - 7:49
    It seems like, wow, this is
    kind of a strange number.
  • 7:49 - 7:51
    You might be tempted
    to think it's prime.
  • 7:51 - 7:55
    But I'm now going to give you
    the answer-- it is not prime,
  • 7:55 - 7:59
    because it is also
    divisible by 3 and 17.
  • 7:59 - 8:02
    3 times 17 is 51.
  • 8:02 - 8:04
    So hopefully that
    gives you a good idea
  • 8:04 - 8:06
    of what prime numbers
    are all about.
  • 8:06 - 8:08
    And hopefully we can
    give you some practice
  • 8:08 - 8:12
    on that in future videos or
    maybe some of our exercises.
Title:
Prime Numbers
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
08:13
Fran Ontanaya edited English subtitles for Prime Numbers
Amara Bot edited English subtitles for Prime Numbers

English subtitles

Revisions Compare revisions