As a spin-off to my challenge over at Puzzling, your goal is to output 2016
.
Rules:
- You must include the numbers
10 9 8 7 6 5 4 3 2 1
in that order. They can be used as individual integers or concatenated together (like1098
), but the10
may not be separated into1
and0
- no character(s) may be present between the digits. Note that, in some languages,10
may not actually represent the integer literal10
, which is acceptable. - Your code must not contain any other numbers or pre-defined number variables or constants (so
T
in Pyth is not allowed, since it is a numeric constant). - You must calculate
2016
using numerics. Simply outputting2016
without performing any operations on the required numbers (for example, by decoding an encoded string consisting of only alphabetic characters) is not allowed. Outputting2016
in pieces (such as20
, then16
) is also not allowed; you must have a single output consisting of the numeric value2016
. - The valid answer with the fewest bytes wins.
20
and16
and print them one after the other or does the calculated number need to be 2016 before printing? 2) Are functions allowed? 3) Is concatenation of digits allowed? e.g.1098
(I'm assuming yes by previous comments, but just to confirm) 4) Does "calculate 2016 using integers" mean that we can never have floats anywhere in an intermediate step? e.g. can I square root a number and round down? \$\endgroup\$T987654321
? \$\endgroup\$