6
1
Your challenge is to output the highest number you can. You can output as a number or as a string. You must output something that matches the regex ^\d+$
, as in only 0-9.
The Twist
Your source code must be:
Same forwards and backwards
3 bytes long
The middle byte must be different from the other two
Example valid:
0_0
)-)
m.m
xvx
W$W
@\@
Example invalid:
mnop
l__l
___
T_+
O_o
0_o
Snippets are allowed, you don't need a full program / function.
3This is easy to brute force for any language. – xnor – 2017-06-08T21:44:33.223
2@cairdcoinheringaahing highest number wins – programmer5000 – 2017-06-08T21:45:38.043
1@xnor true, but will produce intresting submissions. – programmer5000 – 2017-06-08T21:46:15.137
1Why the downvotes? This was +2 in the sandbox – programmer5000 – 2017-06-08T21:48:35.247
3@programmer5000 Perhaps because its trivial, boring, and leaves little room for interesting solutions? I haven't voted on it, but this might be why it stands currently at +1/-4 – Conor O'Brien – 2017-06-08T21:49:44.683
6I downvoted because there are so few possible answers that it's impossible to be at all imaginative, and for most languages the optimal answer is the same (989, 9^9, 9e9, ...). – Doorknob – 2017-06-08T22:02:33.750
1@Doorknob actually, many of the answers below use none of those. – programmer5000 – 2017-06-08T22:04:16.327
2All of which are, notably, esolangs. (And if you're counting by number of languages, the majority of them do.) – Doorknob – 2017-06-08T22:07:36.630
Is there a time limit? – MickyT – 2017-06-08T22:38:04.427
1"You must output something that matches the regex
^\d+$
" - Soe
isn't allowed in the output at all? – Shaggy – 2017-06-08T22:40:57.0001Quick, someone find a language in which
0/0
isInfinity
. It'sNaN
in JS :/ – Stephen – 2017-06-09T17:58:50.257@StephenS "You must output something that matches the regex
^\d+$
" – programmer5000 – 2017-06-09T18:23:04.937@programmer5000 Since snippets are allowed, does this mean that it could be assumed that the value returned is wrapped in a format call of some form - ie, could a snippet that outputs as
9000000000.0
or9.00E+09
be assumed to return9000000000
? - (this would add 16+ languages onto my polyglot :P ) – Taylor Scott – 2017-06-13T04:08:46.233@StephenS - I did it :P ; With
0/0
MATL takes input, implicitly convert to a numeric, and devides it by 0. This outputsInf
for all inputs which do not implicitly convert to0
. – Taylor Scott – 2017-06-13T17:25:13.220Can someone tell me what J outputs for
_ _
? – Magic Octopus Urn – 2017-06-13T18:03:58.550@carusocomputing I'm getting no output from that for particular string – Taylor Scott – 2017-06-14T13:30:16.580
I wonder what the lowest number would be... probably just
000
in most languages. – 12Me21 – 2018-03-03T15:49:26.473