Add helper methods to check prime factorization and total factors.