From: Admin Tensor Date: 2011-12-01T07:17:51+09:00 Subject: Re: Stupid question > Is the parameter to sum even required in this case? The docs say the > parameter n merely limits the sum modulo 2**n-1 which defaults to 16, > or modulo 65535. And the number of digits could be more than five I'd > think, as the limiting factor is that modulo operation and so long as > the actual sum of each character does NOT cross that threshold (65535 > in the default parameter case), it should be fine, no? (And using > ASCII values 48-57 inclusive, we should be safe at least up to strings > of 1149 digits in length.) First of all, to be more exact, I have to say in my previous post "if the number of digits is less than or equal to five." I am assuming that we want the shortest code (for the Ruby Golf ;-) ). Yes, you are right that with slightly longer code, we can deal with larger number. Regards, Bill -- Posted via http://www.ruby-forum.com/.