Last visit was: 21 Apr 2026, 05:42 It is currently 21 Apr 2026, 05:42
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
avatar
eladshush
Joined: 01 Sep 2010
Last visit: 04 Oct 2010
Posts: 19
Own Kudos:
293
 [33]
Given Kudos: 8
Posts: 19
Kudos: 293
 [33]
5
Kudos
Add Kudos
28
Bookmarks
Bookmark this Post
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 21 Apr 2026
Posts: 109,722
Own Kudos:
Given Kudos: 105,797
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,722
Kudos: 810,379
 [11]
7
Kudos
Add Kudos
4
Bookmarks
Bookmark this Post
User avatar
shrouded1
User avatar
Retired Moderator
Joined: 02 Sep 2010
Last visit: 29 Apr 2018
Posts: 608
Own Kudos:
3,230
 [5]
Given Kudos: 25
Location: London
Products:
Posts: 608
Kudos: 3,230
 [5]
5
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
utin
Joined: 27 Mar 2010
Last visit: 26 Sep 2011
Posts: 63
Own Kudos:
Given Kudos: 17
Posts: 63
Kudos: 41
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
eladshush
Hi all,

As you saw, I have published a bunch of questions in the past hour. Most of these questions are taken from a collection of hard quantitative questions provided by The Princeton Review (a.k.a - Killer Math).

I have posted any question that I have solved incorrectly, either due to careless error or concept error, in order to share them with everyone here.

Please consider the following problem that I am not sure I understood:

How many 4 digit codes can be made, if each code can only contain prime numbers that are less than 20?

A. 24
B. 102
C. 464
D. 656
E. 5040

Thank you all for the help and detailed explanations (especially you - Bunuel).
It is very helpful.

The question is a little bit ambiguous but I think it means the following:

I guess as it's not mentioned primes can be repeated.

There are:
4 one digit primes (O) less than 20 - 2, 3, 5, 7;
4 two digit primes (T) less than 20 - 11, 13, 17, 19;

Thus 4-digit number could be of the following type:

OOOO, for example: 2|3|5|7 or 2|2|7|7. Each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4^4\);

TT, for example: 11|11 or 19|17. Each T can take 4 values from {11, 13, 17, 19}, so total ways for this type is \(4^2\);

TOO, for example: 11|3|5 or 19|7|2. T can take 4 values from {11, 13, 17, 19} and each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4*4^2=4^3\);
OTO, for example: 2|13|5 or 7|19|2. The same as above: \(4^3\);
OOT, for example: 2|5|19 or 7|2|17. The same as above: \(4^3\);

Total: \(4^4+4^2+3*4^3=464\).

Answer: C.


Hi Bunuel,

why can't i write TOO,OTO,OOT AS

(4^3)*3! , taking the T as one entity ans assuming that 3 things can be arranged in 3! ways???
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 21 Apr 2026
Posts: 109,722
Own Kudos:
Given Kudos: 105,797
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,722
Kudos: 810,379
Kudos
Add Kudos
Bookmarks
Bookmark this Post
utin

Hi Bunuel,

why can't i write TOO,OTO,OOT AS

(4^3)*3! , taking the T as one entity ans assuming that 3 things can be arranged in 3! ways???


Just one thing: TOO can be arranged in 3!/2! ways and not in 3! (# of permutations of 3 letters out which 2 O's are identical is 3!/2!), so it would be \(4^3*\frac{3!}{2!}=4^3*3\).

Hope it's clear.
User avatar
utin
Joined: 27 Mar 2010
Last visit: 26 Sep 2011
Posts: 63
Own Kudos:
Given Kudos: 17
Posts: 63
Kudos: 41
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
utin

Hi Bunuel,

why can't i write TOO,OTO,OOT AS

(4^3)*3! , taking the T as one entity ans assuming that 3 things can be arranged in 3! ways???


Just one thing: TOO can be arranged in 3!/2! ways and not in 3! (# of permutations of 3 letters out which 2 O's are identical is 3!/2!), so it would be \(4^3*\frac{3!}{2!}=4^3*3\).

Hope it's clear.


I though about the same but but when i see that TOO as three things to be arranged in 3! ways then i also thought that OO ARE TWO DIGITS AND THEY ARE TWO DIFFERENT PRIME NOS SO WHY DIVIDE BY 2!


this might clear my entire probability confusion i hope... :)
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 21 Apr 2026
Posts: 109,722
Own Kudos:
810,379
 [1]
Given Kudos: 105,797
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,722
Kudos: 810,379
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
utin
Bunuel
utin

Hi Bunuel,

why can't i write TOO,OTO,OOT AS

(4^3)*3! , taking the T as one entity ans assuming that 3 things can be arranged in 3! ways???


Just one thing: TOO can be arranged in 3!/2! ways and not in 3! (# of permutations of 3 letters out which 2 O's are identical is 3!/2!), so it would be \(4^3*\frac{3!}{2!}=4^3*3\).

Hope it's clear.


I though about the same but but when i see that TOO as three things to be arranged in 3! ways then i also thought that OO ARE TWO DIGITS AND THEY ARE TWO DIFFERENT PRIME NOS SO WHY DIVIDE BY 2!


this might clear my entire probability confusion i hope... :)

First of all two 1-digit primes can be the same, but it's not important here.

We are counting # of ways 4-digit number can be formed with two 1-digit primes and one 2-digit prime:
{1-digit}{1-digit}{2-digit}
{1-digit}{2-digit}{1-digit}
{2-digit}{1-digit}{1-digit}

Total 3 ways.
User avatar
utin
Joined: 27 Mar 2010
Last visit: 26 Sep 2011
Posts: 63
Own Kudos:
Given Kudos: 17
Posts: 63
Kudos: 41
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Thanks Bunuel... +1 ... u already have many I knw :)
User avatar
shashankism
Joined: 13 Mar 2017
Last visit: 19 Feb 2026
Posts: 608
Own Kudos:
712
 [2]
Given Kudos: 88
Affiliations: IIT Dhanbad
Location: India
Concentration: General Management, Entrepreneurship
GPA: 3.8
WE:Engineering (Energy)
Posts: 608
Kudos: 712
 [2]
2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
eladshush
How many 4 digit codes can be made, if each code can only contain prime numbers that are less than 20?

A. 24
B. 102
C. 464
D. 656
E. 5040

Hi all,

As you saw, I have published a bunch of questions in the past hour. Most of these questions are taken from a collection of hard quantitative questions provided by The Princeton Review (a.k.a - Killer Math).

I have posted any question that I have solved incorrectly, either due to careless error or concept error, in order to share them with everyone here.

Thank you all for the help and detailed explanations (especially you - Bunuel).

It is very helpful.

Though the question is little bit confusing, but conceptually this question is a real gem. More details should have been provided about the restrictions on selection of digits.

So, there are 4 one digit prime numbers to be used they are {2,3,5,7}. Lets call the single digits as O
& there are 4 2-digit prime numbers to be used they are {11, 13, 15, 17}. And double digits as T.

Now there are 3 ways of selecting digits.

Case 1: All one digit prime numbers OOOO
No. of codes = 4^4 (since repetition of digit is allowed = 256

Case 2: 2 Two digit prime numbers TT
No. of codes = 4*4 = 16

Case 3 : one two digit prime number & 2 one digit prime number : OOT, OTO, TOO
No. of codes = 4*4*4 + 4*4*4 + 4*4*4 = 3*4^3 = 192

Total no. of codes = 256 + 16 + 192 = 464

Answer C
User avatar
testcracker
Joined: 24 Mar 2015
Last visit: 02 Dec 2024
Posts: 199
Own Kudos:
Given Kudos: 541
Status:love the club...
Posts: 199
Kudos: 135
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
eladshush
Hi all,

As you saw, I have published a bunch of questions in the past hour. Most of these questions are taken from a collection of hard quantitative questions provided by The Princeton Review (a.k.a - Killer Math).

I have posted any question that I have solved incorrectly, either due to careless error or concept error, in order to share them with everyone here.

Please consider the following problem that I am not sure I understood:

How many 4 digit codes can be made, if each code can only contain prime numbers that are less than 20?

A. 24
B. 102
C. 464
D. 656
E. 5040

Thank you all for the help and detailed explanations (especially you - Bunuel).
It is very helpful.

The question is a little bit ambiguous but I think it means the following:

I guess as it's not mentioned primes can be repeated.

There are:
4 one digit primes (O) less than 20 - 2, 3, 5, 7;
4 two digit primes (T) less than 20 - 11, 13, 17, 19;

Thus 4-digit number could be of the following type:

OOOO, for example: 2|3|5|7 or 2|2|7|7. Each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4^4\);

TT, for example: 11|11 or 19|17. Each T can take 4 values from {11, 13, 17, 19}, so total ways for this type is \(4^2\);

TOO, for example: 11|3|5 or 19|7|2. T can take 4 values from {11, 13, 17, 19} and each O can take 4 values from {2, 3, 5, 7}, so total ways for this type is \(4*4^2=4^3\);
OTO, for example: 2|13|5 or 7|19|2. The same as above: \(4^3\);
OOT, for example: 2|5|19 or 7|2|17. The same as above: \(4^3\);

Total: \(4^4+4^2+3*4^3=464\).

Answer: C.

great solution as always, man
:cool:
User avatar
fugitsapiente
Joined: 30 Dec 2025
Last visit: 15 Apr 2026
Posts: 1
Given Kudos: 1
Posts: 1
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
question: among the 464 possible codes; one of the formed codes is 1933 which is a 4 digit prime bigger than 20. this goes against what the question asks; right?

we can only use prime numbers less than 20; right?

another example- any code that contains digits 2 and 3 together should be disqualified since 23 is a prime that is greater than 20.

Archived Topic
Hi there,
This topic has been closed and archived due to inactivity or violation of community quality standards. No more replies are possible here.
Where to now? Join ongoing discussions on thousands of quality questions in our Problem Solving (PS) Forum
Still interested in this question? Check out the "Best Topics" block above for a better discussion on this exact question, as well as several more related questions.
Thank you for understanding, and happy exploring!
Moderator:
Math Expert
109721 posts