Do you mean like this?
thru=: <. + i.@(+ *@+&0.5)@-~
biggap=: {~ (0 1 + [: (i. >./) 2 -~/\ ])
f=: [: thru/ 1 _1 + [: biggap thru&.(p:inv)
Thanks,
--
Raul
On Fri, Sep 15, 2017 at 5:36 AM, Skip Cave <[email protected]> wrote:
> Write a function f, which will list the longest set of consecutive
> non-prime integers between two prime numbers in the interval x, y
>
> for example:
>
> 10 f 100
> 90 91 92 93 94 95 96
>
>
> 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