added output for fermatfactor