> f:=x^3-x+1 ; discrim(f,x);
> for i from 1 to 20 do print(ithprime(i), Factor(f) mod ithprime(i)) od ;
> f:=simplify((x^5-1)/(x-1)); discrim(f,x);
> for i from 1 to 20 do print(ithprime(i), Factor(f) mod ithprime(i)) od;
>