Sunday, September 11, 2005

Largest factor

Some code to extract the largest factor of an integer, in Pari/GP

x=factor(v);y=matsize(x);x[y[1],1]

No comments :