Ok, I started up jconsole
Cut/past what was in your email
powGB =: (* *:)/@(|.@|....@#:@] { 1x , [)
Then....
2 powGB 11
8192
2 powGB 13
2048
This is not correct.
Does this work on your "J"?
I assume it does.
The following works:
2^11
2048
2^13
8192
----- Original Message Follows -----
From: "Dan Bron" <[email protected]>
To: "'Programming forum'" <[email protected]>
Subject: Re: [Jprogramming] Mersenne Prime initialization.
Date: Fri, 10 Apr 2009 17:13:34 -0400
>Butch Lakeshore wrote:
>> I started a new J session and did the following:
>>
>> powGB=: (**:)/@(|.@|....@#:@]{1x,[)
>
>You have the wrong version of powGB . See that |.@|.@
>in there? That's a no-op (the reverse of the reverse).
>Use the version Bill posted earlier:
>
> powGB =: (* *:)/@(|....@#:@] { 1x , [)
>
>Just copy & paste it -- don't retype it.
>
>-Dan
>
>-----------------------------------------------------------
>----------- For information about J forums see
>http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm