A2
A2LABS
CLOUD LAB
Playground
Labs
Runtime
Projects
Docs
API
Status
A2VPS
512MB
Degraded
Warn
A2Cloud
Sign In
A2Labs
/
Playground
Browser WASM
Browser (Pyodide)
Docker Sandbox
Run
Ctrl+↵
Files (3)
Editor (main.py)
Output
EXPLORER
main.py
data.json
script.sh
Target:
WASM (Local)
Storage: Local Scratch
main.py
python
UTF-8
# A2Labs Playground — Python Workload import sys, math, time start = time.perf_counter() # Compute first 15 prime numbers primes = [x for x in range(2, 50) if all(x % d != 0 for d in range(2, int(math.isqrt(x)) + 1))][:15] print(f"A2Labs Execution Runtime: {sys.platform}") print(f"Calculated primes: {primes}") print(f"Elapsed Time: {(time.perf_counter() - start) * 1000:.3f}ms")
Lines: 12
Tab size: 2 spaces
CONSOLE OUTPUT
Ready to execute. Press Run or Ctrl+Enter.
Idle
Pyodide 0.26
A2Labs Playground v2.4
•
Cluster:
in-bom-1
•
Policy:
Restricted Isolation
Runtime Architecture →