Prime factorization snippet