Aai wrote:
>  I'm not sure if this counts as well. It is still brute force though:
>  (example used in several PL's)
>  
>      p=:2 3 2 -.@-: 3 5 7&|

Thanks. Because this was succinct and I could grok it quickly, I used it as
a basis for the RosettaCode solution. I noted that it was brute force and
directed the reader to Roger's Essay on the J wiki for a more
representative and educational approach.

-Dan

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to