Determining the Common Factors of Two Integers