On Wed, Jul 8, 2009 at 5:03 PM, Srdjan Pejic<spejic / gmail.com> wrote:

> For reference, this solution on Ruby 1.9 running on Mac OS X was submitted
> to me by Gregory Brown over Twitter: time ruby19 -rprime -e
> "Prime.take_while { |e| e < 2_000_000 }.inject { |s,r| s + r }" real
> 0m2.938s

Just for specific details:

sandal:~ $ ruby19 -v
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.4.0]
sandal:~ $ uname -a
Darwin anatta.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
sandal:~ $ time ruby19 -rprime -e "Prime.take_while { |e| e <
2_000_000 }.inject { |s,r| s + r }"

real	0m2.956s
user	0m2.883s
sys	0m0.028s