Björn wrote: > The objective is to get the first number from a list of primes. > > Is there a better way of getting the first number from a list of numbers > putting them each in a box than making it first a character and the taking > the first of each element making it a number and summing up the resulting > list?
I've always preferred to ask for digits directly (numerically), rather than projecting into the string domain and returning to the numeric domain: 10 +/@:#: p:@:i. -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm