The code I posted earlier today was rather mutilated by the
email client I used to post it. Unfortunately, this
mutilation was invisible to me as long as I was using that
client.
Here's a corrected version:
npp=: (((i. <./)@:|@:- { ]) ,@(i.@>:&.(p:^:_1) ^/ [EMAIL PROTECTED]@#:))"0
Also, the first phrase breakout should have been:
i.@>:&.(p:^:_1) generates a list of relevant primes
I apologize on behalf of myself and on behalf of Microsoft.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm