The problem is as follows:
A porcelain jar has inside $20$ spheres labeled with integer numbers from $1$ to $20$. How many spheres at least do it has to be taken out of the jar randomly to be certain that the sum of two of them is a prime number less than $20$?
This situation I also found lost during exams as I don't know where to begin. I sketched the situation as this:
The spheres are labeled from $1$ to $20$
$1,2,3,4....20$
and they are asking the sum is prime so, to have the least number or spheres I can consider the worst case scenario which would mean that each time I take out a sphere I will get a non prime number so their sum is also a non prime.
The non prime numbers in that range are
$4,6,9,10,12,14,15,16,18,20$
So the least number is $10$?
I feel that the answer is incomplete or not correct. Can somebody help me to solve this situation in a more logical way without guessing?
I'd like to learn what is it behind this probability question. Am I on the right track.
What can I conclude to get a prime number, the sum of two primes is also a prime (seems logical, but is it true?). The sum of two non primes is a non prime also logical, but can I conclude that?.
I need help to clear these ideas.
You are asked for the number you need to draw to make sure the sum of two of them is a prime less than $20$, but answered the number you need to draw to make sure you get a single sphere that is a prime less than $20$. For the question you answered, you missed that $1$ is not prime and you need to draw one more to be the prime, so you need to draw $12$.
For drawing numbers such that there is not a pair that sums to a prime less than $20$, you want all the big numbers you can get. You can draw $20$ and $19$ without fear that you will get a prime less than $20$. In fact you can draw $10$ through $20$ without getting a sum less than $20$, let alone a prime. Having done that, any number you draw will let you get a sum of $19$, so you need to draw at least $12$ balls. This is not a proof that $12$ is the answer, but it is a lower bound.
To prove that $12$ is an upper bound, pair up $n$ and $19-n$ for $n \in [1,9]$. There are nine pairs here, each summing to $19$, so you can only pull one of each pair and avoid two numbers summing to a prime less than $20$. You can add $19$ and $20$ to make $11$ numbers as the maximum you can have without having a sum of $19$, so drawing $12$ numbers guarantees there is a pair summing to a prime less than $20$.