// scriptol.org // sieve or eratosthenes in scriptol void eratosthenes(int n) int [] all = {} echo 1, " ", 2 int i = 3 while i <= n if i not in all: echo " ", i int j = i while j <= (n / i) all.push(i * j) let j + 1 /if let i + 2 print return eratosthenes(50)