move Prime::factorize to prime.rb
Math::sqrt is expensive