summaryrefslogtreecommitdiff
path: root/src/user/app/prime
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/prime')
-rw-r--r--src/user/app/prime/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/prime/main.cpp b/src/user/app/prime/main.cpp
index b2b08a8..be8780f 100644
--- a/src/user/app/prime/main.cpp
+++ b/src/user/app/prime/main.cpp
@@ -1,4 +1,5 @@
#include <IO/IOStream.h>
+#include <String.h>
bool is_prime(int i) {
for (int j = 2; j*j <= i; j++) {
@@ -7,7 +8,7 @@ bool is_prime(int i) {
return true;
}
-int Main(char** args) {
+int Main(String *args) {
for (int i = 2; i < 1000000; i++) {
if (is_prime(i)) stdio.printf("%d\t", i);
}