Have you seen Math::Pari::factorint?
In reply to Re: CPAN module for prime factors of a number by BrowserUk in thread CPAN module for prime factors of a number by spx2