Dan Baronet wrote: > Don't forget #.~ to calculate the number of trailing 1s. As in > > m10d=: [: #.~ '0' = ":@[EMAIL PROTECTED]: > > It's not as slow as you might think and compares to <m10i>. Good thinking!
But for both m10d & m10i the bottleneck is the factorial in case of large values (and repeated use). Thanks @@i ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
