This is a matter of adding an "algorithm" option to the function "factor" and wrapping some of the functionality that is currently not easily accessible.
The patch may conflict with #1145, but that ticket has been immobile for a long time.
CC: @aghitza
Component: number theory
Keywords: sd51
Author: Alex Ghitza
Branch/Commit: u/ncohen/14970 @ 510d554
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/14970