Dave Aronson wrote in post #1034582:
>>
>>    "2011".sum(48)%48
>
> Cuuuuute.  If we restrict it to years we've had so far (CE), okay.
>
As Aaron pointed yesterday, if the number of digits is less than or 
equal to five, the shortest code is

    "2011".sum%48

(for some reason it didn't work for me before).  And if the digits are 
longer, he has some shortest code for that.

Regards,

Bill

-- 
Posted via http://www.ruby-forum.com/.