adding a method to get the GCF from 2 prime factorizations