aboutsummaryrefslogtreecommitdiff
path: root/03_threads/native.c
diff options
context:
space:
mode:
Diffstat (limited to '03_threads/native.c')
-rw-r--r--03_threads/native.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/03_threads/native.c b/03_threads/native.c
new file mode 100644
index 0000000..4a3d4fa
--- /dev/null
+++ b/03_threads/native.c
@@ -0,0 +1,10 @@
1#include <stdio.h>
2
3int primes_in_range(int, int);
4
5int main() {
6 int low = 1;
7 int high = 10000000;
8 int result = primes_in_range(low, high);
9 printf("There are %d primes between %d and %d\n", result, low, high);
10}

Generated with cgit - Back to sebastiano.tronto.net