Prime Factor Cannon

Aliens are falling on the city, and each one carries a number. Your cannon fires prime numbers, and an alien is destroyed only when the primes you load multiply to its number. It is a fast way to practice prime factorization until the factors of common numbers come to mind at a glance.

Loading game...

How to play

  1. Tap an alien to target it, or change the target with the arrow keys.
  2. Tap primes on the pad to load them onto the belt. To target 98, load 2, 7 and 7. Every number that is not itself a prime breaks down into primes on the pad, which runs up to 23.
  3. Press FIRE. If the primes on the belt multiply to the alien's number, it explodes. A wrong shot jams the launcher for a moment, and each misfire in a row jams it for longer.
  4. If the target is a prime, such as 127, press P to fire a prime missile instead. It carries the target's own number, so it only hits a prime. The belt has to be empty.
  5. The game ends when the city falls. A wave with no misfires and no buildings lost rebuilds one fallen building.

On a keyboard, 2, 3, 5 and 7 load, T opens a box for typing any other number, Backspace unloads, Enter fires, P fires a prime missile, and Escape or Space pauses. Practice mode shows the product of the belt as you load it, and the city takes no damage.

Scoring

Each alien you destroy scores its number times your combo.

For example, destroying 12 at ×1 scores 12, then 45 at ×2 scores 90, and 98 at ×3 scores 294, for a total of 396.

Your five best scores at each speed are saved in this browser. Speed does not change the points, so each speed keeps its own list. Practice games are not saved.

Need a reference? See our list of prime numbers, or try our other free memory games.