I came up with this one: primerun=:( [: longbox 1&p: <;._1 ])@to to=: [ + i.@:>:@-~ longbox =: (>@#~ (=>./)@:(#&>))
Best regards, Jan-Pieter On 15 Sep 2017 11:36, "Skip Cave" <s...@caveconsulting.com> 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