Maybe the following is a stupid question, if it is I apologize, and I encourage you to close my post.
Suppose that I want to encrypt a message with the RSA cryptosystem; the starting rule is the following: take two prime numbers $p$ and $q$ with $p\neq q$ such that, written as bit strings, they both have exactly $k$ digits. Now if the number of digits $k$ is fixed, who ensures that we can find two primes can be represented with $k$ digits? It is reasonable that if $k$ is big then there are always such two numbers, but is there a formal theorem that says this?
Thanks id advance.
Ramanujan showed that for every $k\in\mathbb{N}$ there exist an $N$ such that for every $n>N$ the numbers of primes between $\displaystyle\frac{n}{2}$ and $n$ is st least $k$, in the specific case for $k=2$ he showed that for every $n\ge11$ there are at least $2$ primes between $\displaystyle\frac{n}{2}$ and $n$.
These numbers are known as Ramanujan's primes (OEIS A104272)