226k views
4 votes
Elliot wrote a computer program that randomly generates a number from 2 to 10. If he runs the program twice, what is the probability that the number generated both times is a prime number?

User Carbolymer
by
7.1k points

2 Answers

5 votes

Answer:

16/81

Explanation:

User Simsons
by
6.4k points
5 votes

Answer:

16/81

Explanation:

The program generates numbers from 2 to 10; this is 9 total possible values (2, 3, 4, 5, 6, 7, 8, 9, 10).

Out of these, there are 4 prime numbers: 2, 3, 5, 7

The probability of choosing a prime number once is 4/9.

The probability of choosing a prime number the second time is 4/9.

Together, the total probability is 4/9(4/9) = 16/81.

User Sbk
by
7.0k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.