comment on algorithm for next prime number