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
where p(1) is the probability for outcome 1 and p(7) is the probability for outcome 7.
Then, we get
that is, the answer is p(A)=0.27