Total number of outcomes = 30.
Prime numbers in 1 to 30 are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29.
Number of favourable outcomes = 10.
∴ P(getting a prime number) =
=
Thus, the probability that the selected number is a prime number is .
Hence, the correct answer is option (c).