fork download
  1. local read, write = io.read, io.write
  2. local b=2
  3. local n, sum = 6,0
  4. while b <= n do
  5. if b%n == 0 then
  6. sum = sum + b
  7. end
  8.  
  9. if sum == n then write("yes")
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
luac: prog.lua:10: 'end' expected (to close 'if' at line 9) near '<eof>'
stdout
Standard output is empty