The puzzle or challenge involves repeated application of some transformation to the input. These puzzles often involve mathematical sequences or fractals.

learn more… | top users | synonyms

13
votes
19answers
2k views

Code Golf: 6174 - Kaprekar's mythical constant

Why is the number 6174 so interesting? As defined by Wikipedia Take any four-digit number, using at least two different digits. (Leading zeros are allowed.) Arrange the digits in ...
7
votes
17answers
1k views

Additive Persistence

The shortest code to pass all possibilities wins. In mathematics, the persistence of a number measures how many times a certain operation must be applied to its digits until some certain fixed ...
6
votes
9answers
505 views

Hitting 495 (Kaprekar)

Input: A three digit number from stdin or as an argument not all digits are the same may start with one or two zero's Order the input-digits ascending and descending to form two new numbers. ...
6
votes
11answers
381 views

Random dice tipping

In a standard dice (die) the numbers are arranged so that opposite faces add to seven. Write the shortest possible program in your preferred language which outputs a random throw followed by 9 random ...