Re: primes.e documentation error? and function error

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu