[R] integer factorization

Robin Hankin r.hankin at soc.soton.ac.uk
Wed Jan 5 09:49:00 CET 2005


Hi

has anyone coded up integer factorization? I want, for example,

R>  factorize(60)

$primes
[1] 2 3 5

$powers
[1] 2 1 1


(actually, I want the divisor function $\sigma_a(n)$, but coding this 
up requires integer factorization).

--
Robin Hankin
Uncertainty Analyst
Southampton Oceanography Centre
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743




More information about the R-help mailing list