Since the number 7 is a prime number, it is only divisible by 1 and itself. Then, the probability of event A is given by
[tex]p(A)=p(1)+p(7)[/tex]where p(1) is the probability for outcome 1 and p(7) is the probability for outcome 7.
Then, we get
[tex]\begin{gathered} p(A)=0.2+0.07 \\ p(A)=0.27 \end{gathered}[/tex]that is, the answer is p(A)=0.27