Eugene wrote:
> there is an answer.
It would be an interesting exercise to build a J verb that produced all the
possible J constants up to a given length.
Another approach would be to generate all possible strings up to a given
length, containing J only constant characters, and then reduce these to
valid J constants. But this approach doesn't really scale well.
For example, reading DoJ parts I & Constants, it seems like this is the
valid universe of J constant characters:
jcc =. '_.',DIGITS,LCALPHA
and to test for even a modest, 1 character improvement to Raul's solution:
#jcc
38
(#jcc)^7x
114415582592
would involve ~115 billion possibilities.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm