I've been working on proving a conjecture I came up with a day or so ago but am having trouble getting off the ground. Here's the idea:
Define the trailing-ones number of a number $n\in \mathbb{N}$ to be the fewest number of 1's that must be added to the end of the number to make it prime.
For instance, the number $23$ has a trailing-ones number of $0$ because it is already prime without any ones being added to the end of it. On the other hand, the number $45$ has a trailing-ones number of $772$, because while $45$ is not prime, $45$ followed by 772 ones is a prime number. Moreover, any number of trailing ones $< 772$ after $45$ will not produce a prime number.
My conjecture is as follows:
Every natural number has a finite trailing-ones number.
That is, there exists no natural number that cannot be made prime by adding some finite number of 1's to the end of it.
What tools come to mind that I could use to prove this conjecture? Do you think this conjecture is false? If so, can you provide a counterexample? One particular example of note is that of $n=38$, which I have yet to compute the trailing-ones number of because it seems to be significantly greater than a thousand.