Adds prime factorization and tags
Implements prime factor algorithm