I doubt you'll find a much faster J solution than: ,(+/~10&*)/ 4#,:>:i.6
or the uglier but slightly quicker ,+// (10<.@^i._4)*/>:i.6 Marshall On Tue, Oct 03, 2017 at 03:16:41PM -0500, Skip Cave wrote: > Another interesting Quora problem: > > Given the integers from 1000 to 9999, remove all integers that contain a 7, > 8, 9, or zero, and list the remaining integers. > > Skip > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
