Very nice Crypto Geek,

I had looked for a bit at other ways to get the total, but I sure hadn't come 
up with anything as pretty as that.

I suppose technically the tacit form would be +/@(_5{.\100+i.) since the 900 is 
the argument

    +/@(_5{.\100+i.)900
98550

Cheers, bob

> On Jan 16, 2018, at 9:51 PM, Crypto Geek <[email protected]> wrote:
> 
> +/_5{.\100+i.900
> 
> 
>> On Jan 16, 2018, at 11:39 PM, Skip Cave <[email protected]> wrote:
>> 
>> I want to find the sum of all the three-digit numbers that are divisible by
>> 5 (Quora problem).
>> 
>> My explicit solution is:
>> 
>>   +/a#~0=5|a=.100+i.900
>> 98550
>> 
>> To find a tacit version:
>> 
>>  sm=. +/a#~0=5|a=.100+i.900
>> 
>>  sm
>> 
>> [: ([: +/ ] #~ 0 = 5 | ]) (100+i.900)"_
>> 
>> 
>> Is there a more compact way to express this function tacitly?
>> 
>> 
>> Skip
>> 
>> 
>> Skip Cave
>> Cave Consulting LLC
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to