Looking for the next prime

1 · John Cook · March 28, 2022, 2:06 p.m.
Suppose you start with some large number x and want to find a prime number at least as big as x. First you test whether x is prime. Then you test whether x + 1 is prime. Then you test whether x + 2 is prime, and so on until you find a prime. Of […] The post Looking for the next prime first appeared on John D. Cook....