but reading this "A correct 99 Bottles of Beer program, which deals with non-trivial loops and conditions, was not announced for seven years; the first correct one was by Hisashi Iizawa in 2005."
@Sp3000 hm yeah. just saying, as fun as it might look, it's probably not worth posting a separate answer, because you can't really do any golfing you wouldn't do in BF. you could include it in a BF answer if we ever get an optimal one.
@Dennis well... I removed the sentence explicitly disallowing them.
@BetaDecay would you mind making the screenshot a bit smaller? :/
@Dennis I'd say they're fine... I mostly removed it because there would be some interesting languages where it's not obvious whether primality testing is possible.
Yes, but only for languages such as sed, Retina, ///, etc.
Only where it is the language's most natural integer representation.
I'm in general a fan of taking input in the most natural format for a given language. If a language has no integer type / integer processing capabilities, then the mos...
I consider this the consensus. BF doesn't have an integer type, so unary is OK.
Some people have used unary in other languages though...
(also I'm still trying to figure out whether it was a great idea - on the one hand it lets more esoteric languages compete, but on the other hand it makes some challenges a whole lot easier...)
that moment when you plug your massive diophantine inequality in 12 variables into Mathematica to find the optimal solution and it gives you the solution you found manually -.-
I have been recently asked a question which I'm trying find the name of the generalized problem:
A bunny can hide in holes for several days and can only move consequently each day. Each day it has to move left or right. We provide the number of holes a rabbit can hide and an array of strategies ...
Voting on Hello World is so weird. I'm in 3rd with a boring ass Java answer. It's not a "cool" language, it's not golfed creatively (it just can't be as far as I see), and it wasn't within the first 10 posted. It's just weird.
Yea, I wasn't expecting much rep at all for this one. I just posted it so there'd be a Java entry, since it's supposed to be a catalog and all. I guess I'll take it, though :D
@BetaDecay I dunno, a horse sounds like a terrible gift. Where am I going to keep him? My apartment certainly isn't big enough, and I don't want the costs associated with stabling/feeding either.
This snippet is exactly the same as Martin's except that this also identifies if people are eligible for a bounty (for question Stop, stand there where you are!).
/* Configuration */
var QUESTION_ID = 55293; // Obtain this from the url
// It will be like http://XYZ.stackexchange.com/questio...
Odd! Safari complained about the link on the leaderboard when clicking, but actually loaded the answer in the frame despite it telling me it was 'insecure'
Assuming the decimal input is limited to a finite length representation, the most sane way to do it would be to just treat the denominator as a suitably sized power of ten and simplify each one.
@Geobits yeah I thought that Doorknob protecting the Quiz was a bit unjustified for example, but I figured he had his reasons. I personally wouldn't protect it until there were several very low quality/invalid answers by new users.
? "Hello, World!" in QBasic would work, but I don't have an implementation to fiddle with the line numbers/spacing/whatever that might be necessary. (I just downloaded one.)
I love that old QBasic-y programming environment. @MartinBüttner, is it a duplicate?
I feel like Basic derivatives are an odd bunch. They all have their own little quirks, just none that really show up when writing "Hello, World!". I'm far from an expert on them, though.