Olive is creating a five-digit code using the digits 0

This topic has expert replies
Source: — Problem Solving |

Legendary Member
Posts: 2214
Joined: Fri Mar 02, 2018 2:22 pm
Followed by:5 members

by deloitte247 » Sat Dec 28, 2019 11:49 am
- Code must have 5 digits
- The 5 digits code are created with exactly 2 prime
- Integers 0 - 9 has 4 prime numbers and 6 non-prime numbers.
Number of different codes = no. of ways to select 2 prime number x no. of ways to select 3 non-prime numbers x 5!
No. of ways to select 2 prime numbers = 4C2
$$=\frac{4\cdot3}{1\cdot2}=\frac{12}{2}=6$$
No. of ways to select 3 non-prime numbers = 4C2
$$=\frac{6\cdot5\cdot4}{3\cdot2}=\frac{120}{6}=20$$
No. of codes = 6 * 20 * 5!
= 120 * 5 * 4 * 3 * 2 * 1
= 14,400


Answer = option D

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 8086
Joined: Sat Apr 25, 2015 10:56 am
Location: Los Angeles, CA
Thanked: 43 times
Followed by:29 members

by Scott@TargetTestPrep » Fri Jan 10, 2020 8:54 am
swerve wrote:Olive is creating a five-digit code using the digits 0 through 9. How many different codes can she create with exactly two prime digits if no digits can be repeated?

A. 252
B. 3,120
C. 3,456
D. 14,400
E. 30,240

The OA is D

Source: Economist GMAT
From 0 through 9, the prime digits are 2, 3, 5, and 7, and thus the non-prime digits are 0, 1, 4, 6, 8, and 9.

The number of ways to select the 2 prime digits is 4C2 = (4 x 3)/2 = 6.

The number of ways to select the 3 non-prime digits is 6C3 = (6 x 5 x 4)/(3 x 2) = 20.

Therefore, there are 6 x 20 = 120 ways to create these codes if order doesn't matter. However, for each code created, the order matters. For example, the code 27014 is different from 70412, 42017, etc. For each of 120 codes, since there are 5 different digits, there are 5! = 120 ways to arrange them. Thus the total number of codes can be created is:

120 x 120 = 14,400

Answer: D

Scott Woodbury-Stewart
Founder and CEO
[email protected]

Image

See why Target Test Prep is rated 5 out of 5 stars on BEAT the GMAT. Read our reviews

ImageImage