where Primes was an array containing all the primes, p: would be
equivalent to {&Primes, so the name fits.
Terrence Brannon wrote:
Re: http://www.jsoftware.com/help/dictionary/dpco.htm
We see the informal name of p: is "Primes"
My reaction to this is:
1 - p: takes a single datum (it is rank-0) and returns a single datum
(the nth prime, where n is the input datum). It is highly singular in
both input and output. Why it is called "primes" therefore escapes me.
2 - Suggested rename: Nthprime
--
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| ramacd <at> nbnet.nb.ca |
|\ | | The only real problem with APL is that
BSc(Math) UNBF'83 | it is "still ahead of its time."
Sapere Aude | - Morten Kromberg
Natural Born APL'er |
-----------------------------------------------------(INTP)----{ gnat }-
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm