def test_factorize2(self): """prime factorization 2""" p = Prime() self.assertEqual([99991, 100003], list(p.factorize(9999399973)))
def test_factorize1(self): """prime factorization 1""" p = Prime() self.assertEqual([2, 2, 3, 3, 5, 5], list(p.factorize(900)))