From 4ea98362c39d63bbfaef28aa25a1e630e01c5611 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 Jun 2025 12:02:10 +0200 Subject: Added native example --- 03_threads/native.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 03_threads/native.c (limited to '03_threads/native.c') 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 @@ +#include + +int primes_in_range(int, int); + +int main() { + int low = 1; + int high = 10000000; + int result = primes_in_range(low, high); + printf("There are %d primes between %d and %d\n", result, low, high); +} -- cgit v1.3