On Sun, Aug 29, 2010 at 5:36 PM, Marshall Lochbaum
<[email protected]> wrote:
> Oh, or
> }.~ [: i.&1 ~:&0
> That should be really fast.
>
Not sure if I am doing the right thing or there is something else(I am
a newbie in J):

 6!:2 '     +/"1@({&f)@(}.~ [: i.&1 ~:&0)"1@(digits)i.1000000'
2.90104
   6!:2 ' +/"1@({&f)@(#~[:>&0+/\)"1(digits)i.1000000'
2.75834
|  6!:2     ' +/"1@({&f)@(#~[:+./\~:&0)"1@(digits)i.1000000'
2.85498
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to