Finds the next prime