1. Home
  2. Strategy
  3. Prime numbers

Prime Numbers in Shikaku

The fastest deduction in Shikaku: a prime number can only ever be a straight line of cells.

In Shikaku, a prime number (2, 3, 5, 7, 11, 13, 17, 19, 23…) can only be a rectangle one cell wide — a horizontal or vertical strip. That removes every “fat” shape at once, so primes are usually the first numbers to solve.

The rule

A rectangle with area n has width × height = n. A prime number has no factors except 1 and itself, so the only shapes are 1×n (a row) and n×1 (a column).

Why it works — and how much it saves

Around a number in open space, every shape can sit in as many positions as its area. A 5 has two shapes, so it has 5 + 5 = 10 possible rectangles. A 6 has four shapes (1×6, 6×1, 2×3, 3×2), so it has up to 24. Primes start with far fewer options than their neighbours.

5
A 5 in open space: 10 options, all straight — they form a cross.
6
A 6 in the same spot: 24 options, including 2×3 and 3×2 blocks.

Those counts were computed by our solver on an empty 11×11 grid: the 6 has 24 options there, the 5 only 10. (Why exactly these numbers? See Shikaku and maths.)

Using it in a real puzzle

  1. Measure the room. A 5 needs five free cells in a straight line. If the grid edge or another number leaves fewer than five in one direction, that direction is out.
  2. Check for swallowed numbers. A strip may not pass over another number. A single number sitting in the way can kill a whole direction.
  3. Count the remaining positions. Often just one position survives — draw it. If two survive, look for overlap cells they share.

A real example

This 6×6 puzzle comes straight from our generator. Its first logical move is a prime:

658323423
The starting grid.
658323423
The 5 at row 1, column 3 has only one possible rectangle from the start — 5 is prime, so it must be a straight strip, and every other position would cross the edge of the grid or swallow another number. Draw the 1×5 rectangle.

2 is the smallest prime. A 2 is always a domino — horizontal or vertical — which makes it a strong blocker for its neighbours.

Large primes are gifts

On big grids, 11, 13 or 17 look scary, but they are among the easiest numbers: a long strip rarely has room to fit in more than one or two places. Look for them early on 15×15 and larger boards.

Try this exact puzzle

Solve the 6×6 grid used in the example above.

Play it

Questions

Which numbers are prime in Shikaku?

Every prime number: 2, 3, 5, 7, 11, 13, 17, 19, 23 and so on. Each can only be a 1-wide horizontal or vertical strip.

Is 1 a prime number in Shikaku?

No. 1 is not prime, but it is even simpler: a 1 is always a single cell on its own.

Are odd numbers always straight lines?

No — only primes. 9 can be a 3×3 square and 15 can be 3×5, so odd composite numbers can be fat rectangles.