summary refs log tree commit diff
path: root/minic/test/prime.c
diff options
context:
space:
mode:
Diffstat (limited to 'minic/test/prime.c')
-rw-r--r--minic/test/prime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minic/test/prime.c b/minic/test/prime.c
index 5d2cde9..4c82ee8 100644
--- 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)