A number is chosen at random from 1 to 25 find the probability of selecting a prime number

Answer

A number is chosen at random from 1 to 25 find the probability of selecting a prime number
Verified

Hint: First of all list down all the prime numbers from 1 to 20 that are 2, 3, 5, 7, 11, 13, 17, 19 and use probability of an event $=\dfrac{\text{Number of favourable cases}}{\text{Number of total cases}}$

Complete step-by-step answer:
Here favourable cases are total prime numbers from 1 to 20 and total cases are total numbers from 1 to 20.
Here we are given that a number is chosen from 1 to 20. We have to find the probability that the number chosen is the prime number.
Before proceeding with the question, we must know some basic terms like prime number, probability etc.
Prime numbers are the numbers that are divisible only by itself and 1. In other words we can say that prime numbers are numbers that have just two factors, 1 and itself.
Examples of prime numbers are 2, 3, 11, 5, 7, 17 etc. We must note that 2 is the only prime number as well even that is 2 is the only even prime number. All other prime numbers are odd.
Also the term ‘probability’ means the extent to which an event is likely to occur measured by ratio of favourable cases to the whole number of cases possible. In short we can say that ‘probability’ means possibility.
Probability of an event $=\dfrac{\text{Number of favourable outcomes/cases}}{\text{Number of total outcomes/cases}}$
Now, to select the prime number from 1 to 20. We must first note down all the prime numbers from 1 to 20.
The numbers that have 2 factors 1 and itself that is prime numbers from 1 to 20 are,
2, 3, 5, 7, 11, 13, 17, 19
Therefore, we have a total 8 prime numbers from 1 to 20.
Now the total numbers from 1 to 20 = 20
Here our favourable case is choosing the prime number from 1 to 20. Therefore, we get the number of favourable cases = 8.
Also here our total cases are all the numbers from 1 to 20. Therefore, the number of total cases = 20.
As we know that,
Probability of an event $=\dfrac{\text{Number of favourable cases}}{\text{Number of total cases}}$,
We get, probability of choosing a prime number from 1 to 20 $=\dfrac{8}{20}=\dfrac{2}{5}$.
Therefore, we get the probability of choosing a prime number from 1 to 20 as $\dfrac{2}{5}or\ 0.4$.

Note: Some students make this mistake of considering all the odd numbers as prime numbers but this is wrong. For example numbers like 9, 15, 21, 25 etc are odd but not prime. So this mistake must be avoided. Also apart from noting each prime number, students can remember that there are a total 25 prime numbers from 1 to 100 and 15 prime numbers from 1 to 50.

Number theory is a branch of mathematics that concerns itself with the set of integers. We restrict ourselves somewhat by doing this as we do not directly study other numbers, such as irrationals. However, other types of real numbers are used. In addition to this, the subject of probability has many connections and intersections with number theory. One of these connections has to do with the distribution of prime numbers. More specifically we may ask, what is the probability that a randomly chosen integer from 1 to x is a prime number?

Assumptions and Definitions

As with any mathematics problem, it is important to understand not only what assumptions are being made, but also the definitions of all of the key terms in the problem. For this problem we are considering the positive integers, meaning the whole numbers 1, 2, 3, . . . up to some number x. We are randomly choosing one of these numbers, meaning that all x of them are equally likely to be chosen.

We are trying to determine the probability that a prime number is chosen. Thus we need to understand the definition of a prime number. A prime number is a positive integer that has exactly two factors. This means that the only divisors of prime numbers are one and the number itself. So 2,3 and 5 are primes, but 4, 8 and 12 are not prime. We note that because there must be two factors in a prime number, the number 1 is not prime.

Solution for Low Numbers

The solution to this problem is straightforward for low numbers x. All that we need to do is simply count the numbers of primes that are less than or equal to x. We divide the number of primes less than or equal to x by the number x.

For example, to find the probability that a prime is selected from 1 to 10 requires us to divide the number of primes from 1 to 10 by 10. The numbers 2, 3, 5, 7 are prime, so the probability that a prime is selected is 4/10 = 40%.

The probability that a prime is selected from 1 to 50 can be found in a similar way. The primes that are less than 50 are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47. There are 15 primes less than or equal to 50. Thus the probability that a prime is selected at random is 15/50 = 30%.

This process can be carried out by simply counting primes as long as we have a list of primes. For example, there are 25 primes less than or equal to 100. (Thus the probability that a randomly chosen number from 1 to 100 is prime is 25/100 = 25%.) However, if we do not have a list of primes, it could be computationally daunting to determine the set of prime numbers that are less than or equal to a given number x.

The Prime Number Theorem

If you do not have a count of the number of primes that are less than or equal to x, then there is an alternate way to solve this problem. The solution involves a mathematical result known as the prime number theorem. This is a statement about the overall distribution of the primes and can be used to approximate the probability that we are trying to determine.

The prime number theorem states that there are approximately x / ln(x) prime numbers that are less than or equal to x. Here ln(x) denotes the natural logarithm of x, or in other words the logarithm with a base of the number e. As the value of x increases the approximation improves, in the sense that we see a decrease in the relative error between the number of primes less than x and the expression x / ln(x).

Application of the Prime Number Theorem

We can use the result of the prime number theorem to solve the problem we are trying to address. We know by the prime number theorem that there are approximately x / ln(x) prime numbers that are less than or equal to x. Furthermore, there are a total of x positive integers less than or equal to x. Therefore the probability that a randomly selected number in this range is prime is (x / ln(x) ) /x = 1 / ln(x).

Example

We can now use this result to approximate the probability of randomly selecting a prime number out of the first billion integers. We calculate the natural logarithm of a billion and see that ln(1,000,000,000) is approximately 20.7 and 1/ln(1,000,000,000) is approximately 0.0483. Thus we have about a 4.83% probability of randomly choosing a prime number out of the first billion integers.

What is the probability of choosing a prime number from 1 to 25?

Hence, the Probability of getting a prime number from 1 to 25,P(E) is 9/25.

What is the probability of getting an even number from 1 to 25?

Hence the probability of getting the number on the card is an even number is 12/25. Was this answer helpful?

What is the probability of choosing a prime number?

The numbers 2, 3, 5, 7 are prime, so the probability that a prime is selected is 4/10 = 40%. The probability that a prime is selected from 1 to 50 can be found in a similar way. The primes that are less than 50 are: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47. There are 15 primes less than or equal to 50.

What is the probability that a number selected from 1 to 20?

As we know that, Probability of an event =Number of favourable casesNumber of total cases, We get, probability of choosing a prime number from 1 to 20 =820=25.