Define a number to be \( \text{boring} \) if all the digits of the number are the same. How many positive integers less than \( 10000 \) are both prime and boring?

Let's think step by step and output the final answer within \boxed{}.
user