bc arbitrary-precision calculator, online. Sandboxed, no install.
bc is the venerable arbitrary-precision calculator on every Unix system. Set the scale, do 1000-digit factorials, script piecewise functions — it holds up.
ls-judge runs GNU bc inside a per-submission microVM. Pipe expressions in via stdin, get results streamed back.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
n = read()
print n * 2, "\n"
halt
21
42