apply, next_prime with arguments
add bsearch and lbound