fork download
  1. local read, write = io.read, io.write
  2. local b=2
  3. local n, sum = 1,0
  4. while n <= 100 do
  5. sum = 0
  6. b = 2
  7. while b <= n do
  8. if b%n == 0 then
  9. sum = sum + b
  10. end
  11. b = b+1
  12. end
  13.  
  14. if sum == n then write(n)
  15. end
  16. end
Time limit exceeded #stdin #stdout 5s 2536KB
stdin
stdout
Standard output is empty