Respuesta :

The set of non-composite numbers from 1 to 40 is given by:

{1, 2, 3, 5, 7, 11, 13, 17, 19 23, 29, 31, 37}

This set has 13 numbers.

Therefore, the probability is 13/40