Remove unused method from prime factorization test