fix some prime count performance and openmp cases