Repeated subtraction method & Prime factorization method