Skip to content

Sunday Times Teaser 2843 – Child’s Play

by Andrew Skidmore

Published March 19 2017 (link)

Liam has a set of cards numbered from one to twelve. He can lay some or all of these in a row to form various numbers. For example the four cards:

6,  8,  11,  2

give a five-figure number. Also, that particular number is exactly divisible by the number on each of the cards used.

In this way Liam used his set of cards to find another much larger number that was divisible by each of the numbers on the cards used — in fact he found the largest such possible number.

What was that number?

2 Comments Leave one →
  1. Brian Gladman permalink

    Quite slow but it gets the job done.

  2. Frits permalink

    Adapting the program to leave the loop early (“cards” is already kind of sorted).

Leave a Reply

Note: HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS