$ jconsole
   system =: 9!:12 ,&(' '&,@":) 9!:14  NB. unix & version
   system''
 5 j701/2011-01-10/11:25
   
Following input to jconsole causes segmentation fault.
In this I've attempted to clear the M. cache because I've observed that
processing 100 values at a time runs quickly.
The file is a LF separated list of the 100000 prime numbers immediately
greater than 10^14 written in base 10 in normal precision.
$ head -1 e304.primes
100000000000031


fibn_test =: +:@(<&2) + 2&|
fibn_even_term =: fibn@-: * +:@fibn@<:@-: + fibn@-:
fibn_odd_term =: (fibn@<:  +&*: fibn)@-:@>:
NB. fibn =: (1234567891011x |
fibn_even_term`fibn_odd_term`0:`1:@.fibn_test)M."0
a=: 1!:1<'e304.primes'
primes=:".' '(I.LF=a)}a

f =: 3 : 0
fibn =. (1234567891011x |
fibn_even_term`fibn_odd_term`0:`1:@.fibn_test)M."0
fibn y
)
a=:_100 f\primes


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to