We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
That's not the same question because {9, 25} is valid subset that should cause you to print YES but neither number is prime. Also a single number is a valid subset, but unless it is 1 it will not fulfull the criteria because it will be divisible by itself (i.e. a number > 1). For instance the subset {5} would not cause you to print YES because all numbers in that set are divisible by 5.
Sherlock and GCD
You are viewing a single comment's thread. Return to all comments →
That's not the same question because
{9, 25}
is valid subset that should cause you to printYES
but neither number is prime. Also a single number is a valid subset, but unless it is1
it will not fulfull the criteria because it will be divisible by itself (i.e. a number > 1). For instance the subset{5}
would not cause you to printYES
because all numbers in that set are divisible by 5.