Skip to main content

Prime Factorization

Prime Numbers

A Prime Number can be divided evenly only by 1 or itself.
And it must be a whole number greater than 1.
The first few prime numbers are: 2, 3, 5, 7, 11, 13, and 17 ..., and we have a prime number chart if you need more.

Factors

"Factors" are the numbers you multiply together to get another number:
factors

Prime Factorization

"Prime Factorization" is finding which prime numbers multiply together to make the original number.
Here are some examples:

Example 1: What are the prime factors of 12 ?

It is best to start working from the smallest prime number, which is 2, so let's check:
12 ÷ 2 = 6
Yes, it divided evenly by 2. We have taken the first step!
But 6 is not a prime number, so we need to go further. Let's try 2 again:
6 ÷ 2 = 3
Yes, that worked also. And 3 is a prime number, so we have the answer:
12 = 2 × 2 × 3

As you can see, every factor is a prime number, so the answer must be right.

Note: 12 = 2 × 2 × 3 can also be written using exponents as 12 = 22 × 3

Example 2: What is the prime factorization of 147 ?

Can we divide 147 evenly by 2? No, so we should try the next prime number, 3:
147 ÷ 3 = 49
Then we try factoring 49, and find that 7 is the smallest prime number that works:
49 ÷ 7 = 7
And that is as far as we need to go, because all the factors are prime numbers.
147 = 3 × 7 × 7
(or 147 = 3 × 72 using exponents)

Example 3: What is the prime factorization of 17 ?

Hang on ... 17 is a Prime Number.
So that is as far as we can go.
17 = 17

Another Method

We showed you how to do the factorization by starting at the smallest prime and working upwards.
But sometimes it is easier to break a number down into any factors you can ... then work those factor down to primes.

Example: What are the prime factors of 90 ?

Break 90 into 9 × 10
  • The prime factors of 9 are 3 and 3
  • The prime factors of 10 are 2 and 5
So the prime factors of 90 are 3, 3, 2 and 5

Comments

Popular posts from this blog

Pointers in C

Pointers are an extremely powerful programming tool. They can make some things much easier, help improve your program's efficiency, and even allow you to handle unlimited amounts of data. For example, using pointers is one way to have a function modify a variable passed to it. It is also possible to use pointers to dynamically allocate memory, which means that you can write programs that can handle nearly unlimited amounts of data on the fly--you don't need to know, when you write the program, how much memory you need. Wow, that's kind of cool. Actually, it's very cool, as we'll see in some of the next tutorials. For now, let's just get a basic handle on what pointers are and how you use them. What are pointers? Why should you care? Pointers are aptly name: they "point" to locations in memory. Think of a row of safety deposit boxes of various sizes at a local bank. Each safety deposit box will have a number associated with it so that you ca...

Types of Computer Networks(LAN,MAN,WAN)

Types of Computer Networks Computer networks are categorized according to: How they are organized physically. The way they are used. The distance over which they operate. Three main types of computer networks are as follows: LAN   (Local Area Network) WAN (Wide Area Network) MAN ( Metropolitan-Area Network) LAN (Local Area Network) LAN is the most common type of network . LAN stands for Local area Network . It covers a small area. Most LANs are used to connect computers in a single building or group of buildings. Hundreds or thousands of computer maybe connected through LAN. Typical LANs can be found in industrial plants, office buildings, and college or university campuses. LANs are capable of transmitting data at very fast rate. Data transmission speeds of LAN are 1 to 100 megabits per second. It is much faster than data transmission over a telephone line. LAN can transmit data in a limited distance. There is also a limit on the number of...

Ring topologies

Ring topologies are similar to bus topologies, except they transmit in one direction only from station to station. Typically, a ring architecture will use separate physical ports and wires for transmit and receive. Token Ring is one example of a network technology that uses a ring topology.