use prime_vector rather than isprime
drop commented code
modify dependency of 007