Re: primes.e documentation error? and function error
- Posted by petelomax Dec 07, 2013
- 1570 views
Lnettnay said...
If the line
list_of_primes = calc_primes(top_prime_p, 5)
is changed to
list_of_primes = calc_primes(top_prime_p, -1)
Seems fair enough to me. I briefly thought about doing something like:
public function prime_list(integer top_prime_p = 0, atom time_limit_p = -1) ... list_of_primes = calc_primes(top_prime_p, time_limit_p)
but on reflection (and with the index_<0 thing) it does not seem worthwhile.
Pete