I have question about a homework.
The question is:
Why can we be $100\%$ sure after $4$ tests for the special case of $p=13$?
I don't get it. I have a formula that states, that every test increases certainty by $\left(\frac14\right)^k$, where $k$ is the number of tests. So after $4$ tests I get around $99.6\%$ certainty, not $100\%.$
Actually your 'formula' is a statement that says that a non-prime number passes the Miller-Rabin-Test for at most 1/4 of all possible bases. That would be no more than three for the number 13. That answers your question.