It's perhaps worth noting that these do not always yield the same result:

   q2 5 7 11 13
6
   q3 5 7 11 13
4

FYI,

-- 
Raul

On Sun, Feb 21, 2021 at 6:10 PM xash <xash@λ.land> wrote:
>
> Without I.:
> q2=: (1r4 3r4 <.@* #) -/@:{ \:~
>
> And a fun one:
> q3=: \:~ -&({~ # <.@% 4:) /:~
> ----------------------------------------------------------------------
> 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