For K-12 Students · Riemann Sums
Riemann Sums for a prime gap
Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a prime gap live below — adjust the inputs and watch it respond, right in your browser.
Riemann SumsLive
approximating the definite integral
Controls
Rectangles approximate the area under the curve. Add more and the Riemann sum converges to the true integral.
Presets
Data Inspector
Riemann sum20.7111
Exact integral20.8000
Error0.0889
Governing equation
Reading this result: With n=12 midpoint rectangles the step is dx = 0.667. The midpoint rule already cancels much of the error at each rectangle. Adding subintervals shrinks the error toward the exact integral; midpoint and trapezoid rules converge fastest (error ~1/n²), so from n=12 the estimate tightens quickly as you push toward n=100.
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
More with Riemann Sums
Frequently asked questions
- Is this good for k-12 students?
- Yes — this version of "Riemann Sums for a prime gap" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
- Do I need to install anything?
- No. It runs in any modern browser, free, with no account required.