Richard in Reading on Wed, 01 May 2013 19:05:24 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Recovering partial factorizations when using trap() and alarm() to abort factorint()


Thanks again Max!

I saw that this was part of the code you posted but I didn't try it as I thought it was doing something completely different. If you're doing lots of factoring then factor(N,0) will presumably slow down a lot as the list of stored factors grows... I think I'm catching on to the way things are done round here... I presume if I change primelimit then the stored factors are forgotten and the memory is freed?

Richard 

--- On Wed, 1/5/13, Max Alekseyev <maxale@gmail.com> wrote:

> This is done by setting default(factor_add_primes,1);
> before running factorint(N) and calling factor(N,0); after it is aborted.