Raul Miller wrote:
> On 8/24/07, John Randall <[EMAIL PROTECTED]> wrote:
>> f=:[: +/ 5 = [: , [: q: [: >: i.
>
> Or:
> F=: [: +/ 3 {:@q: 1 + i.
>
> Though, of course, the other style is radically more efficient:
> G=: [: +/ ] <[EMAIL PROTECTED] >:@i.@<.&.(5&^.)
> G 5e9
> 1249999998
>
You're right, of course. I was trying to show another approach to the
problem which will continue to work in a UFD for which you cannot use
numbers.
Best wishes,
John
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm