Fix small bug in is_prime speed test
Fix small bug in is_prime speed test

We were testing p instead of p + i as intended.

Also change the loop induction to work around what appears to be
a lgtm false positive.

randombit/botan,randombit/botan,randombit/botan,randombit/botan,randombit/botan