not as nice, but it is mine :P
a ,/@:(_2 ,./\ ,/@:(*/)) b
________________________________
From: robert therriault <[email protected]>
To: [email protected]
Sent: Saturday, October 14, 2017 12:31 PM
Subject: Re: [Jprogramming] reminded of an old puzzle
Slight variation to Roger (talk about standing on the shoulders of giants!)
kr=: [: ,./^:2 */
a kr b
2 2 2 3 3 3
2 4 2 3 6 3
2 2 2 3 3 3
5 5 5 7 7 7
5 10 5 7 14 7
5 5 5 7 7 7
Cheers, bob
> On Oct 14, 2017, at 9:10 AM, Roger Hui <[email protected]> wrote:
>
> kr=: [: ,./^:2 *"0 2
>
> a kr b
> 2 2 2 3 3 3
> 2 4 2 3 6 3
> 2 2 2 3 3 3
> 5 5 5 7 7 7
> 5 10 5 7 14 7
> 5 5 5 7 7 7
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm