diff scripts/specfun/isprime.m @ 30400:168da23530b4 stable

maint: strip trailing spaces from code base.
author Rik <rik@octave.org>
date Mon, 29 Nov 2021 16:43:46 -0800
parents a49c635b179d
children 83aeaba707d8 796f54d4ddbf
line wrap: on
line diff
--- a/scripts/specfun/isprime.m	Mon Nov 29 15:58:51 2021 -0800
+++ b/scripts/specfun/isprime.m	Mon Nov 29 16:43:46 2021 -0800
@@ -99,7 +99,7 @@
   ## Generate prime table of suitable length up to maxp.
   ## The value of maxp needs to be at least 37,
   ## because of the method used by __isprimelarge__ below.
-  maxp = 37;  
+  maxp = 37;
   pr = [2 3 5 7 11 13 17 19 23 29 31 37];
   t = lookup (pr, x, "b");  # quick search for table matches.
 
@@ -119,9 +119,9 @@
   ##         30e9       28.3848s       27.9982s
   ## which is close enough to interpolate, so final threshold = 29 billion.
   ##
-  ## The test code was this: 
-  ##   n = THRESHOLD - (1:1e7); tic; isprime(n); toc 
-  ##   n = THRESHOLD + (1:1e7); tic; isprime(n); toc 
+  ## The test code was this:
+  ##   n = THRESHOLD - (1:1e7); tic; isprime(n); toc
+  ##   n = THRESHOLD + (1:1e7); tic; isprime(n); toc
   ##
   ## Two notes for future programmers:
   ##