# Sunday Times Teaser 2836 – Squaring Up

### by Tom Wills-Sandford

#### Published: 29 January 2017 (link)

Alice had a large collection of one centimetre square tiles. She used them to make a set of some larger squares of different sizes, all with sides of less than a metre. When I saw these squares I removed one corner tile from each. Then, for each mutilated shape, Alice moved the minimum number of tiles to transform it into a rectangle. Overall she moved two hundred tiles. This resulted in a set of rectangles all of whose sides were a prime number of centimetres long.

What (in increasing order) were the lengths of the sides of her original squares?

5 Comments Leave one →

Excellent very fast solution – only 13 msec on my laptop , with few lines of code after excluding comments.

2. Here’s my code:

The enigma.py library is available from [ https://www.magwag.plus.com/jim/enigma.html ]

3. Christopher Wheeler permalink

Hello all I am totally confused by this.
What is the answer?