From 8f74c747cdc79f031440fbea73d89fd22d68f57a Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Wed, 29 Sep 2021 09:01:00 +0200 Subject: [PATCH] Added mod operator, primes program stub --- examples/primes.mga | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/primes.mga diff --git a/examples/primes.mga b/examples/primes.mga new file mode 100644 index 0000000..3966cae --- /dev/null +++ b/examples/primes.mga @@ -0,0 +1,11 @@ +INT tot +INT n +INT j +INT te +IN INT tot numero massimo +SET n 0 +:scn +:sieve +MOD n j te +JE sieve tot +OUT $n$