From: Christoph Fuerst Date: Fri, 14 Apr 2017 16:36:05 +0000 (+0200) Subject: optimized algorithm X-Git-Url: http://git.risc.jku.at/gitweb/?a=commitdiff_plain;h=d1341efad092388222b5ee21d8183410f62bbf20;p=cfuerst%2Fformal-numbers.git optimized algorithm --- diff --git a/sieveEratosthenes.txt b/sieveEratosthenes.txt index 4790088..0ae53d4 100644 --- a/sieveEratosthenes.txt +++ b/sieveEratosthenes.txt @@ -40,10 +40,9 @@ proc SieveOfErathostenes(m:nat): Array[MAX,Bool] { if ret[i] = true then { - j = i^2; for k=0;i^2+k*i