Ruby prime factors