This question is O205 from the Mathematical Reflections. I do not own any copyrights to this question.
Find all $n$ such that each number containing $n$ $1$'s and one $3$ is prime.
For example, when $n=2$ we find that $113, 131$ and $311$ are prime.