From: Reid Thompson Date: 2012-02-17T22:41:28+09:00 Subject: Re: Factorial On Fri, 2012-02-17 at 18:35 +0900, Junayeed Ahnaf Nirjhor wrote: > Hello, > > What is the most efficient way in Ruby to calculate the factorial of any > given sum? Is there any way to make it as fast as in C? > > Complexity doesn't matter as long as it works correctly. see the first example here http://www.zenspider.com/ZSS/Products/RubyInline/