Last visit was: 24 Apr 2026, 09:47 It is currently 24 Apr 2026, 09:47
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,814
Own Kudos:
Given Kudos: 105,871
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,814
Kudos: 811,030
 [19]
1
Kudos
Add Kudos
18
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,814
Own Kudos:
811,030
 [4]
Given Kudos: 105,871
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,814
Kudos: 811,030
 [4]
1
Kudos
Add Kudos
3
Bookmarks
Bookmark this Post
General Discussion
User avatar
chetan2u
User avatar
GMAT Expert
Joined: 02 Aug 2009
Last visit: 24 Apr 2026
Posts: 11,229
Own Kudos:
45,008
 [3]
Given Kudos: 335
Status:Math and DI Expert
Location: India
Concentration: Human Resources, General Management
GMAT Focus 1: 735 Q90 V89 DI81
Products:
Expert
Expert reply
GMAT Focus 1: 735 Q90 V89 DI81
Posts: 11,229
Kudos: 45,008
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
avatar
TarunKumar1234
Joined: 14 Jul 2020
Last visit: 28 Feb 2024
Posts: 1,102
Own Kudos:
1,357
 [1]
Given Kudos: 351
Location: India
Posts: 1,102
Kudos: 1,357
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
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?

Selection of Prime nos. = 4C2 =6 ways
Selection of other digits = 6C3 = 20 ways
And arranged in 5! =120 ways

So, Total nos. of ways = 6*20*120= 14400

I think D. :)
User avatar
MathRevolution
User avatar
Math Revolution GMAT Instructor
Joined: 16 Aug 2015
Last visit: 27 Sep 2022
Posts: 10,063
Own Kudos:
Given Kudos: 4
GMAT 1: 760 Q51 V42
GPA: 3.82
Expert
Expert reply
GMAT 1: 760 Q51 V42
Posts: 10,063
Kudos: 20,000
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Total numbers: 10 [0 to 9]
Prime numbers: 4 [2, 3, 5, 7]
Code: 5 digits: _, _, _, _, _
Condition: Repetition not allowed and exactly 2 prime needed.

First select two primes out of 4: \(^4{C_2} = 6\). These 6 ways will cover the place for 2 digits.

Remaining 6 digits will be selected from 6 digits: \(^6{C_3} = 20\).

To arrange these 5 digits, we need \(5! = 120\) ways.

Total ways: \(6 * 20 * 120 = 14,400\)

Answer D
User avatar
avbharathkumar
Joined: 04 Apr 2025
Last visit: 27 Apr 2025
Posts: 1
Given Kudos: 5
Posts: 1
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
1. Thanks for the explanation. I'm still not able to understand why at last you have multiplied by 5!

2. Also, I solved this question in the following way and got wrong. Can you pls explain where i lost my track or is my approach fundamentally wrong.

There are 5 digits, So _ _ _ _ _
There are 4 prime numbers between 0 to 9.
There are 6 non-prime numbers.
Having 2 prime numbers is a must.

Therefore by using fundamental counting principle and filling the above blanks.

4 3 6 5 4 (The first two numbers are filled with prime, remaining three are non prime)

Therefore, 4x3x6x5x4 = 1440.

Now, prime numbers can be arranged in the following.

P1 NP P2 NP NP - Keeping the first number in position, the second number can be swapped 4 times. Now, move the first number (P1) to second slot and keep rearranging second number (P2). So, you get 4x5 = 20 possibilities.

So, I thought 1440 x 20 = 28800.

P.S. Pls excuse if I got the logic terribly wrong.

Bunuel
Bunuel
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 code will be any combination of the following: {P1} {P2} {X} {Y} {Z}, where P1 and P2 are prime digits, and X, Y and Z are other digits (all distinct).

There are four single-digit primes: 2, 3, 5, and 7 and six other digits: 0, 1, 4, 6, 8, and 9.

The number of pairs of primes, P1 and P2, out of four primes is 4C2 = 6;
The number of triplets of non-primes, X, Y and Z, our of six is 6C3 = 20.

Therefore, 6*20*5! = 14,400 (multiplying by 5! to account for different arrangements of 5 digits {P1} {P2} {X} {Y} {Z}).

Answer: D.
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,814
Own Kudos:
811,030
 [2]
Given Kudos: 105,871
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,814
Kudos: 811,030
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
avbharathkumar
1. Thanks for the explanation. I'm still not able to understand why at last you have multiplied by 5!

2. Also, I solved this question in the following way and got wrong. Can you pls explain where i lost my track or is my approach fundamentally wrong.

There are 5 digits, So _ _ _ _ _
There are 4 prime numbers between 0 to 9.
There are 6 non-prime numbers.
Having 2 prime numbers is a must.

Therefore by using fundamental counting principle and filling the above blanks.

4 3 6 5 4 (The first two numbers are filled with prime, remaining three are non prime)

Therefore, 4x3x6x5x4 = 1440.

Now, prime numbers can be arranged in the following.

P1 NP P2 NP NP - Keeping the first number in position, the second number can be swapped 4 times. Now, move the first number (P1) to second slot and keep rearranging second number (P2). So, you get 4x5 = 20 possibilities.

So, I thought 1440 x 20 = 28800.

P.S. Pls excuse if I got the logic terribly wrong.

Bunuel
Bunuel
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 code will be any combination of the following: {P1} {P2} {X} {Y} {Z}, where P1 and P2 are prime digits, and X, Y and Z are other digits (all distinct).

There are four single-digit primes: 2, 3, 5, and 7 and six other digits: 0, 1, 4, 6, 8, and 9.

The number of pairs of primes, P1 and P2, out of four primes is 4C2 = 6;
The number of triplets of non-primes, X, Y and Z, our of six is 6C3 = 20.

Therefore, 6*20*5! = 14,400 (multiplying by 5! to account for different arrangements of 5 digits {P1} {P2} {X} {Y} {Z}).

Answer: D.

The problem is when you multiply by 20. After doing (4*3)(6*5*4), 4*3 already gives ordered primes (so 2! is already accounted for) and 6*5*4 already gives ordered non-primes (so 3! is already accounted for). Now to arrange P, P, not P, not P, not P, you need to multiply by 5!/(2!*3!) = 10, not by 20. That is where you went wrong.
User avatar
Jaanvi24
Joined: 13 Apr 2025
Last visit: 22 Nov 2025
Posts: 3
Given Kudos: 2
Posts: 3
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Wouldn't it be a permutations problem? Since the order of the numbers matter?
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,814
Own Kudos:
Given Kudos: 105,871
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,814
Kudos: 811,030
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Jaanvi24

Bunuel
Bunuel
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 code will be any combination of the following: {P1} {P2} {X} {Y} {Z}, where P1 and P2 are prime digits, and X, Y and Z are other digits (all distinct).

There are four single-digit primes: 2, 3, 5, and 7 and six other digits: 0, 1, 4, 6, 8, and 9.

The number of pairs of primes, P1 and P2, out of four primes is 4C2 = 6;
The number of triplets of non-primes, X, Y and Z, our of six is 6C3 = 20.

Therefore, 6*20*5! = 14,400 (multiplying by 5! to account for different arrangements of 5 digits {P1} {P2} {X} {Y} {Z}).

Answer: D.
Wouldn't it be a permutations problem? Since the order of the numbers matter?
Yes, it is a permutation problem. That is why after choosing the digits (2 primes and 3 non-primes), we multiply by 5! to account for all possible orders. The combinations (4C2 and 6C3) handle the selection of digits, and 5! handles the different possible arrangements.
Moderators:
Math Expert
109814 posts
Tuck School Moderator
853 posts