Updated sieve example to use const

This commit is contained in:
Bobbi Webber-Manners 2018-05-11 21:03:58 -04:00 committed by GitHub
parent 18942a9ba0
commit 964032ae28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1150,8 +1150,9 @@ Here is the well-known Sieve of Eratosthenes algorithm for finding prime numbers
```
' Sieve of Eratosthenes
byte A[20*20] = 1
call doall(20, A)
const sz=20
byte A[sz*sz] = 1
call doall(sz, A)
end
sub doall(word nr, byte array[])