Pyth, 5 bytes
x1iLQ
Try it online!
How it works
Note that Pyth uses 0-indexing.
x1iLQ Q = eval(input())
x1iLQQ implicit Q at the end
iLQQ [gcd(Q,0), gcd(Q,1), ..., gcd(Q,Q-1)]
x1 all occurences of 1 in the above list (return their indices)
To keep this short, this requires writing a for loop to print every byte of ram to the console. (This is my first code-golf, so let me know if I messed up.)
MicroVersion: Planned service degradation: All Stack Overflow/Stack Exchange sites read-only for 20 minutes on Wed, May 3, 2017 shortly after 8PM US/Eastern (midnight UTC). If you blink, you'll miss it.
Short version:
There will be a service degradation for up to 20 minutes shortly after 8PM US...
Compress playing cards (work in progress) kolmogorov-complexity
First, let us define a deck of 52 standard playing cards:
Ace, Jack, King, Queen, 1, 2, 3, 4, 5 ,6 7, 8, 9, 10, and each card has four suits: Clubs, Diamonds, Hearts, Spades, and thus 13 x 4 = 52
Your task is to devise the smalles...
@ETHproductions I usually find it saves a draft of at least one post, but I'm not sure it can be relied upon so I usually save the draft externally to be sure. I don't know of a way to force it, it just seems to save periodically
answer-chaining-tagged questions should be sorted newest to oldest by default. It is disorienting to see them out of order because they are sorted highest to lowest votes. Agreed?
I was asked in the interview what programming language was used to implement Java. I was stunned: I never thought of this. I only know the core Java classes are in Java.
What programming language is used to develop Java?
My dad says yes, but I can't tell if he's just telling my horror stories of ye olden days.
But the internet says that no, first they wrote an incredibly simple proto-assembly, which they used to bootstrap writing more complicated assemblers, until something mostly usable for actual work was created.
This question (the one about storage in golfing language, if you've already seen it) seems like it would work better if it's expanded a little to include different types of golfing languages. Obviously the data type is the most critical item if you're trying to decide between creating a stack-based language or a tape-based language, but there's also prefix languages, infix languages, tacit languages, etc.
Storage applies most crucially to stack-based languages, tape-based langs, etc. but how do you describe how Pyth or Jelly stores data (ignoring variables and registers)?
I'd edit this into the question, but a) I'm not sure how to phrase it, and b) I don't know if it's a good idea