From: Florian Frank Date: 2005-06-26T10:03:36+09:00 Subject: Re: I saw the beauty of Ruby Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan wrote: >So if Josef put his version in RAA , the Ruby RAA "primes" will 10 times faster than the perl CPAN one for the time being. :o) > > That's not necessary, it's already part of the standard library: require 'mathn' p Prime.new.inject(0) { |s,x| if x > 50_000 then break s else s + 1 end } -- Florian Frank