From: Ryan Davis Date: 2007-02-17T09:11:54+09:00 Subject: Re: Intensive computing: Ruby? Ruby/C? Pure C++? On Jan 18, 2007, at 4:24 PM, Michael Guterl wrote: >> I wrote mine a bit different: >> >> def prime(n) >> return false if n > 2 and n % 2 == 0 >> max = sqrt(n) >> 3.upto(max) do |i| >> return false if i % 2 != 0 and n % i == 0 >> end >> return true >> end >> >> optimize :prime > > > Where does this call to optimize come from? From my fingers? I think what you mean to ask is where is optimize. It is provided by my package ZenHacks in a not terribly usable form. > Am I the only one feeling like they're missing out on something > interesting? Yes, everyone else went to rubyconf 2005 and saw it on their own. :P