Christmas Cracker Mystery Calculator

A paper version of this is a common "gift" in a Christmas cracker - can you see how it works? Choose a number and then click all of the cards on which that number appears - your chosen number will appear underneath!

Card 1 Card 2 Card 3 Card 4 Card 5

Click a Card to Start

As this trick is on a computing website, which numerical technique do you think it might be using? For a clue, have a look at this page!