From: jzakiya@... Date: 2005-06-29T05:50:42+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 With Ruby 1.8.2, Mandriva LE 2005, AMD K-7, 600MHz Testing with 1_000_000.primes Found this to be infintesimally faster: p.each { |f| break if (i%f).zero? or f > r } next if (i%f).zero? p.push(i) end than this p.each { |f| break if (i%f).zero? or f > r } p.push(i) if (i%f).nonzero? end