BREAKING: Target Test Prep releases Brand New 2026 On Demand GMAT prep course

Redeem

Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

★★★★★5.0559 reviews
Vote for Target Test Prep, Newsweek Readers’ Choice Awards 2026
NEWSWEEK READERS’ CHOICE 2026

BIG NEWS! Target Test Prep has been nominated, and they’d love your vote!

TTP has worked incredibly hard to build the best test prep experience possible, and winning Newsweek’s 2026 Readers’ Choice Award for Best Test Prep would mean a lot to them. If TTP has helped you, they’d be incredibly grateful for your vote. You can vote once each day through September 9.

Vote for TTP
GMATLiveTeach 7 seats left
Chris Peckover
NEXT LIVE COHORT

Oct 13 to Jan 7, 2027

with Chris Peckover

Schedule
Tue, Thu · 8:00 to 10:00 PM ET
Included
40 live hours + 6 months of GMAT OnDemand
  • Live instruction and real-time questions
  • Class recordings and assigned practice
View class & enroll
Limited cohort · enrollment openTarget Test Prep
EALiveTeach 5 seats left
Logan Thompson
EXECUTIVE ASSESSMENT

Sep 6 to Dec 6, 2026

with Logan Thompson

Schedule
Sun · 9:30 AM to 12:30 PM ET
Included
40 hours of live online classes plus six months of access to the complete TTP EA OnDemand course.
  • 165+ EA Score Guarantee
  • 4,100+ Quant, Verbal, and Integrated Reasoning practice questions
  • 400+ hours of in-depth video lessons
  • 3,000+ step-by-step video solutions
View EA class & enroll
Limited cohort · enrollment openTarget Test Prep
GMATOnDemand Start anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

715+ score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

Compare the format, schedule, and included access before enrolling. Prices and seat counts shown reflect the supplied offer details.

Probability - Password problem

Expert replies
by sam2304 » Sun Aug 21, 2011 9:46 pm
The question is from the 300 GMAT problems with best solutions from our forum.

A password of a computer used five digits where they are from 0 and 9. What is the probability that the password solely consists of prime numbers and zero?
A 1/32
B 1/16
C 1/8
D 2/5
E ½

My approach:

We often use permutation and combinations in probability to arrive at no of outcomes.

Total number of outcomes = 10C5 - Choosing 5 digits out of 10 digits.
Total number of favorable outcomes = 5C5 x 5! ((Choosing 5 digits - 4 prime and zero out of the same) x (the number of ways each digit can be arranged))

5C5 = 1
so P(Password being prime and zero) = (1 x 5!)/10C5

The solution given in the document is different from the way i solved it. There are many problems which i have solved it using combinations and this one is confusing as even the answer choices won't fit in if i solve it using the above approach.

Need your help on why the above approach is wrong.


OA is A

Solution given in the document:
There are 10 possible options (0,1,2,3,4,5,6,7,8,9) for each digit.
5 of the options (0,2,3,5,7) are zero or prime.
So, P(a given digit is zero or prime) = 5/10 = 1/2

A quick way is to look at this as an AND probability.
P(all five digits are zero or prime) = P(1st digit is zero or prime AND 2nd digit is zero or prime AND 3rd digit is zero or prime AND 4th digit is zero or prime AND 5th digit is zero or prime)

This is equal to P(1st digit is zero or prime) x P(2nd digit is zero or prime) x P(3rd digit is zero or prime) x P(4th digit is zero or prime) x P(5th digit is zero or prime)
So, we get 1/2 x 1/2 x 1/2 x 1/2 x 1/2 = 1/32


Thanks in Advance.
Join the discussion
Source: — Problem Solving |

by Frankenstein » Sun Aug 21, 2011 10:19 pm
sam2304 wrote: The solution given in the document is different from the way i solved it. There are many problems which i have solved it using combinations and this one is confusing as even the answer choices won't fit in if i solve it using the above approach.
Hi,
The question never said five distinct digits. So, digits can be repeated.
So, total number of cases will be 10^5 instead of 10C5.
Btw, even in your case(assuming all 5 are distinct), the number of cases should be 10P5, not 10C5.
As, the password should be chosen from 5digits(0,2,3,5,7), number of ways = 5^5
So, probability is 5^5/10^5 = (1/2)^5 = 1/32.
Cheers!

Things are not what they appear to be... nor are they otherwise
Join the discussion

by smackmartine » Sun Aug 21, 2011 10:27 pm
Total number of outcomes = 10C5 - Choosing 5 digits out of 10 digits. This is wrong

Apply basic counting methods on these types of problems, rather than jumping straight on to formulas.

Total number of outcomes = (10)^5 (you can repeat the digits , because the question does not restrict you.)

Favorable outcomes= 5*5*5*5*5 = 5^5 (again no restriction on choosing same digits out of 0,2,3,5,7)

So, P(E) = (5/10)^5=(1/2)^5 = 1/32

So A
Smack is Back ...
It takes time and effort to explain, so if my comment helped you please press Thanks button :)
Join the discussion

by sam2304 » Sun Aug 21, 2011 10:28 pm
Thanks a lot for the tip. I forgot about repetition. Very true to your tagline :)
Join the discussion

by Geva@EconomistGMAT » Mon Aug 22, 2011 7:04 am
sam2304 wrote:Thanks a lot for the tip. I forgot about repetition. Very true to your tagline :)
sorry for nitpicking, but the method detailed above would not have worked even had the question said "without repetition". This is because you are assuming that the order matters for the top of the fraction (by multiplying by 5!), while at the same time you're assuming that the order does not matter for the bottom of the fraction (10c5 means "without order). In order to correctly find the number of wanted outcomes out of the total number of outcomes, you need to be consistent - either the order matters for both, or does not matter for both. For probability, it doesn't really matter whether the order matters or not, as long as you're consistent in both top and bottom.

the correct calculation (assuming that the question uses without repetition) would be

total number of outcomes: 10C5 *5! (first choose which 5 digits, then multiply by internal order)
Wanted number of outcomes 5C5 * 5! (internal order of the 5 numbers - 4 primes and zero)

Once you reduce the 5!, you get 1 / 10C5 - Out of all the different ways of choosing 5 digits out of 10 (regardless of order), only one choice will include all 4 primes and zero 2,3,5,7,0. If you then want to find all the permutations in the wanted outcomes (0,2,3,5,7), that's fine, as long as you remember that the total number of outcomes should also include the permutations of all the different choices in 10C5.
Geva
Senior Instructor
Master GMAT
1-888-780-GMAT
https://www.mastergmat.com
Join the discussion

by Whitney Garner » Mon Aug 22, 2011 8:21 am
A final note to add to this is about the always-useful Slot Method.

For the Denominator (total number of choices), there are 5 numbers to pick, so 5 slots. We have 10 choices for the first, 10 for the second... and so on. Filling all these slots means multiplying (these are AND choices), so the total number of choices is the 10^5 noted above.

For the Numerator (total desired outcomes), there are still 5 numbers to pick, so 5 slots, BUT now we have only 5 numbers to choose from. Completing the slots, there are 5 choices for each. Therefore, we have 5^5 choices that we favor.

5^5 / 10^5 = (5/10)^5 = (1/2)^5 = 1/32

Note: this is the exact same fraction that someone noted above, but I just wanted to remind you that setting up actual slots and thinking about each choice can help prevent mistakes that come from jumping straight into equations or formulas.

:)
Whit
Whitney Garner
GMAT/GRE/EA Instructor & Anxiety/Accommodations Coach
www.whitneygarner.com

Contributor to Beat The GMAT!

Math is a lot like love - a simple idea that can easily get complicated :heart-eyes:
Join the discussion

by amit2k9 » Wed Sep 28, 2011 7:50 am
probability = (5+1)^5/ 10^5 = 1/32
For Understanding Sustainability,Green Businesses and Social Entrepreneurship visit -https://aamthoughts.blocked/
(Featured Best Green Site Worldwide-https://bloggers.com/green/popular/page2)
Join the discussion