Last visit was: 27 Apr 2026, 04:02 It is currently 27 Apr 2026, 04:02
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: 26 Apr 2026
Posts: 109,927
Own Kudos:
Given Kudos: 105,913
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,927
Kudos: 811,520
 [50]
1
Kudos
Add Kudos
48
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
quantumliner
Joined: 24 Apr 2016
Last visit: 26 Sep 2018
Posts: 240
Own Kudos:
805
 [13]
Given Kudos: 48
Posts: 240
Kudos: 805
 [13]
5
Kudos
Add Kudos
8
Bookmarks
Bookmark this Post
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 26 Apr 2026
Posts: 109,927
Own Kudos:
Given Kudos: 105,913
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,927
Kudos: 811,520
 [12]
1
Kudos
Add Kudos
11
Bookmarks
Bookmark this Post
General Discussion
User avatar
Luckisnoexcuse
User avatar
Current Student
Joined: 18 Aug 2016
Last visit: 31 Mar 2026
Posts: 513
Own Kudos:
684
 [1]
Given Kudos: 198
Concentration: Strategy, Technology
GMAT 1: 630 Q47 V29
GMAT 2: 740 Q51 V38
Products:
GMAT 2: 740 Q51 V38
Posts: 513
Kudos: 684
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
How many positive integers less than 2*10^4 are there in which each digit is a prime number?

(A) 256
(B) 326
(C) 340
(D) 625
(E) 775

20000 (5 digits)
No number can be formed of 5 digits as 1 is not a prime number and at First place only Prime number 2 can come

single digit prime numbers are
2,3,5,7
4 digit numbers with prime numbers will be
So 4^4 = 256
3 digit numbers with prime numbers will be
4^3 = 64
2 digit numbers with prime numbers will be
4^2 = 16
1 digit numbers with prime numbers will be
4
Total = 256 + 64 + 16 + 4 = 340

C
User avatar
TheMechanic
Joined: 19 Oct 2012
Last visit: 05 Jul 2018
Posts: 207
Own Kudos:
596
 [1]
Given Kudos: 103
Location: India
Concentration: General Management, Operations
GMAT 1: 660 Q47 V35
GMAT 2: 710 Q50 V38
GPA: 3.81
WE:Information Technology (Computer Software)
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Numbers less than 20,000 will have 5 digits or less.
This is a generic representation of this number: _ _ _ _ _
Clearly, we can't have a prime number for the 1st place since that would take the value more than 20k. Therefore, we start with 2nd place and so on. We can have only 2,3,5,7 as single digit prime numbers filling in the places.
So for a 4 digits number: we have 4 options for each digit. This gives us \(4 . 4 . 4 . 4 = 256\) possible numbers.
And for a 3 digits number: we have 4 options for each digit. This gives us \(4 . 4 . 4 = 64\) possible numbers.
And for a 2 digits number: we have 4 options for each digit. This gives us \(4 . 4 = 16\) possible numbers.
And for a 1 digit number: we have 4 options for the digit. This gives us \(4 . 1 = 4\) possible numbers.
Adding all possible numbers, we get 340. Hence C.
User avatar
Nikkb
User avatar
Current Student
Joined: 02 Jul 2017
Last visit: 08 Jan 2024
Posts: 226
Own Kudos:
318
 [2]
Given Kudos: 70
Concentration: Entrepreneurship, Technology
GMAT 1: 730 Q50 V38
1
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Integers less than 20000 in which each digit is a prime number : 2,3,5,7,22,23,25,27,32,33,35,37......

possible options
Single digit -> 4
2 digit -> 4 *4 = 16
3 digit -> 4*4*4 = 64
4 digit -> 4*4*4*4 =256
5 digit :
10000 till 20000 -> But here as 1st digit is always 1 which is not prime.. we cannot consider numbers between 10000 and 20000

Total : 4+16+64+256 = 340

Answer: C
avatar
manishgmat1
Joined: 11 Mar 2014
Last visit: 01 Feb 2019
Posts: 19
Own Kudos:
Given Kudos: 8
Products:
Posts: 19
Kudos: 5
Kudos
Add Kudos
Bookmarks
Bookmark this Post
is this the correct method
2* 10^4=20,000
single digit 2,3,5,7
two digit = 4*4 ie 16
three digit numbers 4*4*4= 64
four digit =4*4*4*4=25
6
we have reached 10,000
as tenth thousnadths digit is 1 all numbers beyond will have this number(1x,xxx) as non prime which makes them null and void
also the range 20,000 forbids us to consider 22,222
so we have to consider
256+64+16+4=340
Am i correct
avatar
AkshatN
Joined: 13 Feb 2017
Last visit: 11 Jan 2019
Posts: 4
Own Kudos:
Given Kudos: 1
Posts: 4
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
_ - 4 ways
_ _ - 4 x 4 = 16 ways
_ _ _ - 4x4x4 = 64 ways
_ _ _ _ - 4x4x4x4= 256ways total = 340

Sent from my SM-G615F using GMAT Club Forum mobile app
User avatar
BrentGMATPrepNow
User avatar
Major Poster
Joined: 12 Sep 2015
Last visit: 31 Oct 2025
Posts: 6,733
Own Kudos:
Given Kudos: 799
Location: Canada
Expert
Expert reply
Posts: 6,733
Kudos: 36,473
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
How many positive integers less than 2*10^4 are there in which each digit is a prime number?

(A) 256
(B) 326
(C) 340
(D) 625
(E) 775

In other words, "How many positive integers less than 20,000 are there in which each digit is a prime number?"
The prime digits are: 2, 3, 5 and 7
Notice that, using the digits 2, 3, 5 and 7, we cannot create a 5-digit number that's less than 20,000
So, we must consider 4 possible cases: 4-digit numbers, 3-digit numbers, 2-digit numbers, and 1-digit numbers

4-digit numbers
There are 4 options for the first digit (2, 3, 5 or 7), 4 options for the second digit, 4 options for the third digit, and 4 options for the last digit
TOTAL number of 4-digit numbers = (4)(4)(4)(4) = 256

3-digit numbers
There are 4 options for the first digit (2, 3, 5 or 7), 4 options for the second digit, and 4 options for the last digit
TOTAL number of 3-digit numbers = (4)(4)(4) = 64

2-digit numbers
There are 4 options for the first digit (2, 3, 5 or 7), and 4 options for the last digit
TOTAL number of 2-digit numbers = (4)(4) = 16

1-digit numbers
There are 4 options: 2, 3, 5, 7

ANSWER = 256 + 64 + 16 + 4 = 340 = C

Cheers,
Brent
User avatar
KanishkM
Joined: 09 Mar 2018
Last visit: 18 Dec 2021
Posts: 755
Own Kudos:
Given Kudos: 123
Location: India
Posts: 755
Kudos: 512
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel
How many positive integers less than 2*10^4 are there in which each digit is a prime number?

(A) 256
(B) 326
(C) 340
(D) 625
(E) 775

Numbers less than 20000, in which each digit is a prime number

There will be 4 prime numbers 2 3 5 7

_ _ _ _ => 4*4*4*4 = 216
_ _ _ => 4*4*4 = 64
_ _ => 4*4= 16
_=> 4

216 + 64 + 20
340

C
User avatar
dracarys007
Joined: 04 Jun 2020
Last visit: 24 Feb 2022
Posts: 68
Own Kudos:
Given Kudos: 16
Location: India
Concentration: Strategy, General Management
GPA: 3.4
WE:Engineering (Consulting)
Kudos
Add Kudos
Bookmarks
Bookmark this Post
1 digit 4
2 digit 4*4 = 16
3 digit 4*4*4 = 64
4 digit 4*4*4*4 =256
Total : 4+16+64+256 = 340
User avatar
Ambanis
Joined: 29 Mar 2024
Last visit: 07 Aug 2025
Posts: 1
Posts: 1
Kudos: 0
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Any number having unit digit 5 is divisible by 5 then how is it prime number?
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 26 Apr 2026
Posts: 109,927
Own Kudos:
Given Kudos: 105,913
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,927
Kudos: 811,520
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Ambanis
Any number having unit digit 5 is divisible by 5 then how is it prime number?

Check the highlighted word:

How many positive integers less than 2*10^4 are there in which each digit is a prime number?
­
The digits of a number should be primes, not the number itself.
User avatar
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,990
Own Kudos:
Posts: 38,990
Kudos: 1,118
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Automated notice from GMAT Club BumpBot:

A member just gave Kudos to this thread, showing it’s still useful. I’ve bumped it to the top so more people can benefit. Feel free to add your own questions or solutions.

This post was generated automatically.
Moderators:
Math Expert
109927 posts
Tuck School Moderator
852 posts