Added mod operator, primes program stub
This commit is contained in:
parent
4f4cb5fa6a
commit
8f74c747cd
11
examples/primes.mga
Normal file
11
examples/primes.mga
Normal file
|
@ -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$
|
Reference in New Issue
Block a user