Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Ulam Folio

Sixty thousand integers as fine grains on a dark plate, with the primes lit so the diagonal streaks of the square spiral show, plus a loupe, five layouts and a live prime census.

Пример

Ulam Folio prime plate
Открыть в новой вкладке

Ulam Folio prime plate

Пример работает в sandbox-рамке без доступа к этой странице.

Запустить онлайн

Запустите в SandBase sandbox и смотрите результаты в Lab.

Открыть в Lab ↗

Что вы получите

Bring a range of integers and a layout to arrange them in. The Skill returns a downloadable Skill and a runnable prime-spiral scene.

Как это работает

  1. 01

    Build the prime plate page

    Ulam Folio builds with npm install, which adds playwright-core for the checks only, then npm run build for a bilingual dist/index.html or npm run build:zh for the Chinese-only plate. Everything is Canvas 2D drawn by code with no image assets or network requests. The page places the integers 1 to 60,000, or 30,000 on narrow screens, as fine grains on a dark plate.

  2. 02

    Sieve, morph and explore layouts

    An Eratosthenes sieve in src/spiral.js marks the primes, and five layouts, row, line, the Ulam square walk, the Sacks coil and a polar seed, morph with each point delayed by its square root so changes ripple outward. Press and hold for a numbered loupe that lights both diagonals, drag to pan, scroll to zoom, and use keys 1 to 5 for layouts.

  3. 03

    Shoot the maths and verify

    npm run shoot checks the sieve count against trial division, the square-walk coordinates of 1 and 9, a morph that settles, k squared plus k plus 41 giving 40 primes before 1681, the Euler tag on 41 and 500 primality spot checks. It writes dist/shoot-report.json and shoot-spiral.png. verify.mjs proves five interactions under the sandbox CSP.

FAQ

What does Ulam Folio show?

Ulam Folio shows up to 60,000 integers as grains on a dark plate, with the primes gathering into the diagonal streaks of the Ulam square walk. An instrument column offers five layouts, a range dial, overlays for twin pairs, the k squared plus k plus 41 chain and composite dust, a live census and a histogram of prime gaps.

Are the primes in Ulam Folio computed or stored?

Ulam Folio computes them. A sieve runs in the page, and the census of pi(n), n over ln n, their ratio, twin couples and the widest gap, plus the gap histogram, come from the same pass. The shoot check compares the count with trial division.

Does Ulam Folio need a key or network?

No. Ulam Folio has no runtime model calls, image assets or network requests; playwright-core is installed only for the checks. Exploring any range on the plate is therefore free of SandBase charges.

Why do diagonals stop being straight in other Ulam Folio layouts?

Ulam Folio highlights diagonals using the square walk's coordinates. In the coil, seed or other layouts the lit cells are the same numbers, but they no longer sit on a straight line.

Can Ulam Folio show more than 60,000 numbers?

No. Ulam Folio fixes the grain count at build time by screen width, 60,000 or 30,000, and the range dial can only show fewer. On load a sieve front sweeps outward through the count, then a light runs along the most prime-rich diagonals.

Does Ulam Folio work with reduced motion?

Yes. Ulam Folio skips the entrance sweep, the diagonal light, the ring pulse and the automatic layout tour when reduced motion is on. The loupe, panning, zoom and layout tiles still work as usual.

Навык Lab · Interactive scenes

Resin Diorama

Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

Навык Lab · Interactive scenes

3D Vehicle Worlds

Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

Навык Lab · Interactive scenes

3D Firefly Terrariums

Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Навык Lab · Interactive scenes

Jelly Candy: Fruit Bears

Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

Навык Lab · Interactive scenes

WebGPU Soft-Body Gummy Bears

Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Навык Lab · Interactive scenes

Stone Stars: 3D Miniature Landmark City

Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.