changeset 19086:bb0c5e182c12

isprime.m: Update docstring to note that 1 is not prime. isprime.m: Update docstring to note that 1 is not prime.
author Rik <rik@octave.org>
date Tue, 26 Aug 2014 08:05:42 -0700
parents 3d0f4f4ec688
children 168c0aa9bb05
files scripts/specfun/isprime.m
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/specfun/isprime.m	Mon Aug 25 22:19:02 2014 -0700
+++ b/scripts/specfun/isprime.m	Tue Aug 26 08:05:42 2014 -0700
@@ -22,11 +22,11 @@
 ## Return a logical array which is true where the elements of @var{x} are
 ## prime numbers and false where they are not.
 ##
-## A prime number is conventionally defined as a positive integer (1, 2, 3,
-## @dots{}) which is divisible only by itself and 1.  Octave extends this
-## definition to include both negative integers and complex values.  A
-## negative integer is prime if its positive counterpart is prime.  This is
-## equivalent to @code{isprime (abs (x))}.
+## A prime number is conventionally defined as a positive integer greater than
+## 1 (e.g., 2, 3, @dots{}) which is divisible only by itself and 1.  Octave
+## extends this definition to include both negative integers and complex
+## values.  A negative integer is prime if its positive counterpart is prime.
+## This is equivalent to @code{isprime (abs (x))}.
 ## 
 ## If @code{class (@var{x})} is complex, then primality is tested in the domain
 ## of Gaussian integers (@url{http://en.wikipedia.org/wiki/Gaussian_integer}).