JuliaMath/Primes.jl

Small mod for correct "factorization of products"

rickhg12hs opened this issue · 1 comments

So this would create a factorization of 10*20 ...

myfact = factor(10)
Primes.factor!(20, myfact)

Could this line ...

isprime(n) && (h[n] = 1; return h)

be changed to:

isprime(n) && (h[n] = get(h, n, 0) + 1; return h) 

?

fixed by #58