PPolySim OS
For K-12 Students · Direction Field

Direction Field 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.

Direction Field / Slope FieldLive

Controls

▶ Run in Python

Data Inspector

Equationdy/dx = f(x,y)
Curves1
IntegratorRK2

Governing equation

Reading this result: Every tick shows the slope dy/dx = f(x,y) at that point; drag the start point and RK2 rethreads the solution curve live, always staying tangent to the arrows. That start point alone picks which one curve you get — click elsewhere to pin extra curves for comparison.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Direction Field

Frequently asked questions

Is this good for k-12 students?
Yes — this version of "Direction Field 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.