Square-free factorization#Yun's algorithm