Hello, J is fascinating. Am learning slowly....
In the following why does pl not work? n =. 30 p:^:_1 n 10 p: i. p:^:_1 n NB. list of primes less than n 2 3 5 7 11 13 17 19 23 29 pl =. p: i. p: ^: _1 pl n NB. Does not work! 1 p: i. (p: ^: _1) 30 2 3 5 7 11 13 17 19 23 29 pl =. p: i. (p:^:_1) NB. Is it a paranthesis problem? 5!:5 < 'pl' NB. J removes the paranthesis anyways... p: i. p:^:_1 Regards, Yuva ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
