diff scripts/specfun/primes.m @ 9165:8c71a86c4bf4

Update section 17.5 (Utility Functions) of arith.txi
author Rik <rdrider0-list@yahoo.com>
date Fri, 01 May 2009 10:06:16 -0700
parents c1fff751b5a8
children 95c3e38098bf
line wrap: on
line diff
--- a/scripts/specfun/primes.m	Thu Apr 30 16:24:34 2009 -0700
+++ b/scripts/specfun/primes.m	Fri May 01 10:06:16 2009 -0700
@@ -23,10 +23,17 @@
 ##
 ## The algorithm used is the Sieve of Erastothenes.
 ##
-## Note that if you need a specific number of primes, you can use the
-## fact the distance from one prime to the next is on average
-## proportional to the logarithm of the prime.  Integrating, you find
-## that there are about @math{k} primes less than @math{k \log (5 k)}.
+## Note that if you need a specific number of primes you can use the
+## fact the distance from one prime to the next is, on average,
+## proportional to the logarithm of the prime.  Integrating, one finds
+## that there are about @math{k} primes less than
+## @tex
+## $k \log (5 k)$.
+## @end tex
+## @ifnottex
+## k*log(5*k).
+## @end ifnottex
+## @seealso{list_primes, isprime}
 ## @end deftypefn
 
 ## Author: Paul Kienzle