PaintPam Library
Black Hole Prime Factors in play

Screen · Touch, Mouse

Black Hole Prime Factors

Tap composites to split them, drag the primes into a black hole: prime factorization as a four-stage touch game.

Surface
A landscape touch screen or touch kiosk, ideally 16:9 such as 1920×1080. The game scales to fit other sizes.
Input
Touch: tap and drag. A mouse works for testing. It is not suited to floor or wall sensors that report only single steps. No drivers are included.
PC
Windows PC with Chrome or Edge (one-click kiosk launcher included), or Chrome on a Mac. No internet needed; top scores and settings stay in that browser.

Free · Windows & macOS · 136 KB · Download appears right after the form

See it with real people

In real use

See it with real people

Tapping composites to split them and dragging primes into the black hole on a portrait touch kiosk.

Filmed in Korea on an earlier build, so any on-screen text is in Korean. The evaluation build is in English.

Who it's for

Made for spaces like yours

  • Schools and math classrooms working on primes and factors
  • Science centers, museums and libraries with a touch screen or touch kiosk
  • Education fairs and school open days that want a hands-on math game

What it does for you

For you and your visitors

  1. The math is the controls: tap 12 and it splits into 3 and 4, with the equation shown on screen. Only primes go in the black hole; a composite gets spat back out and costs points.
  2. Four timed stages build up, from 5 planets with numbers up to 30 to 30 planets with numbers up to 200. Combo bonuses and a Top 10 list on the PC give players a reason to go again.
  3. A three-slide How to Play on the title screen explains primes and composites, and prime planets glow as a hint. You can switch the glow off.
  4. Set up in minutes, run it yourself: it runs offline, returns to the title screen when left alone, and config.js sets the number ranges, time limits, title text and logo, so you can fit it to your class or venue.

Gallery

Hardware

What it runs on

Runs on any touch screen your computer sees as a touch device. Looking for hardware? Ask us which MP Series unit fits your space.

See the MP Series

Make it yours

Change it yourself, or let us

These settings live in customize/config.js inside the download. Edit, save, reload.

SettingWhat it changesDefault
Titletext.titleThe big heading on the title screen and the browser tab title. Longer titles shrink to fit.Black Hole Prime Factors
Subtitletext.subtitleThe line under the title.Break every planet down into primes and feed them to the black hole!
Your logologo.filePath to a PNG or JPG in the folder (e.g. customize/logo.png), shown top-left on the title screen. Empty = no logo.empty
Logo sizelogo.heightLogo height in pixels on a 1920x1080 screen (30 to 300).120
StagesstagesThe stage list, played in order: planets, seconds, smallest and largest number on a planet for each stage (1 to 8 stages, numbers up to 999). Smaller numbers and more seconds make it easier.4 stages: 5 planets/30 s (4-30), 10/60 s (4-60), 20/90 s (6-100), 30/140 s (6-200)
Planet speedgame.planet_speedHow fast planets drift: 0.5 is half speed, 2 is double (0.2 to 3).1
Combo timegame.combo_secondsSeconds a player has to land the next prime and keep a combo going (1 to 20).3.5
Prime glowgame.prime_glowPrime planets glow as a hint. Set to false to make players spot primes by the number; the How to Play text changes with it.true
Wrong-drop penaltygame.wrong_drop_penaltyPoints lost for dropping a composite in the black hole: its number times this value (0 = no penalty, up to 50).5
Result timetiming.result_secondsClear, time's-up and all-clear screens go back to the title after this many seconds (5 to 300). A touch keeps a clear or time's-up screen up.20
Idle returntiming.idle_return_secondsAny other screen left untouched goes back to the title after this many seconds (0 = never, up to 600).60
Top scores listedleaderboard.sizeHow many top scores the all-clear screen keeps and lists (3 to 20).10
Music volumesound.music_volumeBackground music, 0 to 100. Also adjustable in the Esc panel.40
Effects volumesound.effects_volumeSplit, drop and reject sounds, 0 to 100. Also adjustable in the Esc panel.70
Music tracksound.music_trackcosmic, tense or retro. Each has one melody for menus and another for play. Also in the Esc panel.cosmic
Characterscreen.characterThe helper in the corner: astronaut, alien, robot or cat. The Esc panel can also upload your own image.astronaut
Backgroundscreen.backgroundImage behind everything, path relative to index.html. Empty = animated stars on black. The default is a nebula image included in the download.assets/nebula.jpg

Need more than settings?

Your logo and colors, another language, your own questions or content, or a new piece on the same idea.

Specs

Technical details

Package size
Windows & macOS: 136 KB 139,060 bytes
Operating system
Windows & macOS
Entry file
index.html
Resolution
1920x1080 (16:9, scaled to fit any window with the shape kept)
Orientation
Landscape
Offline
Yes, no internet needed
UI language
English
Input
Touch, Mouse
Players
1 at a time; several hands can drag at once on a multi-touch screen
Session length
Stage time limits of 30, 60, 90 and 140 seconds, so about 5 minutes at most for all four
Version
1.1 · built Nov 2, 2026
Checksums (SHA-256)
  • blackhole-prime-factorization-all.zipbe6ab8106c5e84f460052eb969cdf12f199485a6b78f9f206769c61fbcefa7df

Get the free evaluation build

When would you use it?
What do you have to run it on? (optional)

We only use this to follow up about your request.