[Jprogramming] Prime Puzzle
Rob Hodgkinson
rhodgkin at me.com
Sat Feb 13 04:58:56 UTC 2016
ff=: 13 : '*/\p:i.y'
ff
[: */\ [: p: i.
ff each 1 2 3 4 5 6
┌─┬───┬──────┬──────────┬───────────────┬─────────────────────┐
│2│2 6│2 6 30│2 6 30 210│2 6 30 210 2310│2 6 30 210 2310 30030│
└─┴───┴──────┴──────────┴───────────────┴─────────────────────┘
…/Rob
> On 13 Feb 2016, at 3:09 PM, Kip Murray <thekipmurray at gmail.com> wrote:
>
> This one is fairly easy. Write the verb ff .
>
> (ff 1);(ff 2);(ff 3);(ff 4);(ff 5);ff 6
> +-+---+------+----------+---------------+---------------------+
> |2|2 6|2 6 30|2 6 30 210|2 6 30 210 2310|2 6 30 210 2310 30030|
> +-+---+------+----------+---------------+---------------------+
>
> --Kip Murray
>
>
>
> --
> Sent from Gmail Mobile
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list