removed useless function from prime_test