prime_division(value, generator= Prime::Generator23.new) -> [[Integer, Integer]]
[permalink][rdoc]与えられた整数を素因数分解します。
例:
require 'prime' Prime.prime_division(12) #=> [[2,2], [3,1]] Prime.prime_division(10) #=> [[2,1], [5,1]]
[SEE_ALSO] Prime.prime_division, Prime::EratosthenesGenerator, Prime::TrialDivisionGenerator, Prime::Generator23