That cleans it up nicely Bob
Cheers,
Ric

On Wed, Apr 30, 2014 at 6:22 AM, robert therriault <[email protected]>wrote:

> Nice Ric,
>
> Slight variation, although we are getting a bit away from the original
> question it is still fun to play with the patterns.
>
> sumPrimes1=:  [: +/i.&.(p:inv)
>    sumPrimes1 20
> 77
>
> Cheers, bob
>
> On Apr 29, 2014, at 9:21 AM, Ric Sherlock <[email protected]> wrote:
>
> > sumPrimes=: +/@:p:@i.@(p:inv)
>
> ----------------------------------------------------------------------
> 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