Game
In developmentPrime Crunch
A match-three where the colours are prime factors.
Overview
A match-three puzzle for iPhone and iPad built on number theory rather than coloured gems: every tile is a number, and tiles match when they share a prime factor. Twelve levels with factor-collection and score goals, power-ups drawn from the same mathematics, and a pure-Swift engine kept separate from the game that draws it.
What it does
- Prime factors are the colours
- A tile's colour families are the distinct primes dividing it, so 6 matches both the 2s and the 3s. Three or more in a row sharing one prime is a match.
- Strict about what a match is
- A run must share a single common prime, not merely be pairwise non-coprime: 6, 10 and 15 have a common factor with each neighbour but no prime across all three, so they deliberately do not match.
- Special tiles from the same mathematics
- A match of four leaves a prime ray that clears everything divisible by that prime along its line; five or more leaves a factor bomb that clears a 3×3 area.
- Goals that are number theory, not quotas
- A level asks for a score, a count of a particular prime factor collected, or a target sum of factorisations — and an endless mode for play without one.
- Power-ups that are operations
- GCD merge, LCM spawn, reveal factors, hint, shuffle and extra moves — each one a thing you can do to numbers rather than a generic booster.
- Cascades score as they resolve
- Score and goal progress climb step by step through a cascade rather than jumping once at the end, so a long chain reads as it happens.
Built with
- Swift 6
- SwiftUI
- SpriteKit
- StoreKit
- iOS 17+
- iPadOS
Worth knowing
The rules are a library
Board, matching, cascades, scoring and the number theory are a separate Swift package with its own test suite, independent of SpriteKit — so the part that decides what is legal is tested without a scene to render it.
Deterministic boards
Generation runs on a seeded SplitMix64 rather than the system generator, so a board can be reproduced exactly — which is what makes the generation tests meaningful.
In-app purchases, no tracking
Power-up shards are consumable purchases through StoreKit. The privacy manifest declares no tracking and no collected data types; the only sensitive API it touches is local storage, for your own progress.
Interested in Prime Crunch?
Ask about availability, licensing, or having something similar built for your own domain.
Get in touchMore work
Fuel Planner
Aviation app
Cross-country fuel planning that answers the question EFBs can't.
Genus
Game
Puzzles you solve by reasoning, not by memorising — where the surface itself is the problem.