diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 14:07:01 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-19 14:07:01 +0200 |
commit | 0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 (patch) | |
tree | a9038fce4cf81556fbdd5589caee8f4e9bfc5185 /src/user/app/prime | |
parent | 499ca6c243b05da176a2d4bd9a2317f0b28afc7f (diff) | |
download | TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.tar.gz TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.zip |
Added string class for FWIK.
Diffstat (limited to 'src/user/app/prime')
-rw-r--r-- | src/user/app/prime/main.cpp | 3 |
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); } |