qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 8cfcd87e50121f20be175d341bfddd55e35ab7c2
parent e2fca0812b8ad880b8908dfe025ffe7d79f008cb
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue, 13 Oct 2015 13:15:12 -0400

no, 9 is not prime

Diffstat:
Mminic/test/prime.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/minic/test/prime.c b/minic/test/prime.c @@ -8,13 +8,13 @@ main() { c = 0; n = 2; - while (n < 1000) { + while (n < 5000) { t = 2; p = 1; while (t*t <= n) { if (n % t == 0) p = 0; - t = t + 2; + t++; } if (p) { if (c % 10 == 0)