From 0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 19 May 2012 14:07:01 +0200 Subject: Added string class for FWIK. --- src/user/app/prime/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user/app/prime') 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 +#include 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); } -- cgit v1.2.3