clarify is_prime assignment
drop unnecessary function