Fastest Cashier in the West
You're trying to design an automatic cashier that is able to dispense the correct amount of change in any denominations as quickly as possible. Your goal is to implement a program that accepts a target integer T ≥ 0 which is the amount you're trying to make change for...
Google has blocked all known proxies. For TOR nodes, they simple 403 them, because it's usually bad traffic. There are only captcha's for unblocked IPs.
CMC: What's the largest even number that can only be described as the sum of two primes one way? It appears to be 12, but I don't know if that's proven.
The Goldbach Conjecture states that every even number greater than two can be expressed as the sum of two primes. For example,
4 = 2 + 2
6 = 3 + 3
8 = 5 + 3
However, once we get to 10 something interesting happens. Not only can 10 be written as
5 + 5
but it can also be written as
7 + 3
S...
Your task is to generate a random digit following these steps:
First, generate 10 random digits to make a binary number, 50% 0, and 50% 1:
010011001
If it is all zeros, generate a new one.
Convert this to decimal:
153
For each digit, write that amount of alternating 0s and 1s (first digit...
@HelkaHomba >Thirty-one states and the District of Columbia allow internet voting for overseas military and civilians. Alaska allows any Alaskan citizen to do so.
NYT about the attacks. Just for reference, because I didn't know that.
@feersum I don't know but who cares. Worst case scenario, he doesn't do anything because the dems fill most of the senate and he doesn't get re-elected. Best case scenario, he gets impeached within a year
Tetration, represented as a^^b, is repeated exponentation. For example, 2^^3 is 2^2^2, which is 16.
Given two numbers a and b, print a^^b.
Test cases
1 2 -> 1
2 2 -> 4
5 2 -> 3125
etc.
Scientific notation is acceptable.
Remember, this is code-golf, so the code with the smallest number o...
This is a code golf challenge I thought of with a mathematical bent. The challenge is to write the shortest code possible such that is an open question whether or not the code terminates. An example of what I mean could be the following piece of python code, adapted from an anwser to this cs stac...
I'm expecting to put a bounty on one of my questions, and I was considering putting setting the bounty at 500 reputation. How would this affect things if I had to put up a second bounty on it? Would it have to be 1000 reputation (since each extra bounty has to be doubled)? Would it just have to b...
This made me think: Normally, the DB does the SQL->ExecutionPlan step, but it'd be really cool if the execution plan could be described in some standard language, and any language could be used to compile down
@xnor Hm, Carmicheal's conjecture has two integers you have to keep track of, which sounds annoying in Jelly. phi(n) /n == 0.4 should be easy enough though.
Among the first things I ever implemented, since I had wanted one badly and many times in other languages. It doesn't even use floats, so it should terminate only when the integer cannot be represented anymore.
I have to say, that's pretty good data compression
Anonymous
3:16 AM
@Dennis Sure. I don't see the harm. Just make sure it only triggers on new answers, and not edits to answers (like "this bounty has been modified/awarded")
A Milky Way golf
I am offering a 50-rep bounty to anyone who can answer a code-golf question using Milky Way in fewer bytes than myself. To compete, the author of the answer should ping me in The Nineteenth Byte, or email me (see my profile page).
This bounty is offered to any answers that are ...
Fitting but Unsuitable Languages: 4 x 500 points
There are some challenges for which we all want to see answers in a certain language, even if the solution is very difficult. I'll award 500 points for an answer in such a language to any.
Hexagonal Maze Time! in Hexagony
Current shortest soluti...
2x 500 rep for quines in Hexagony
There are two ways to write a quine in Hexagony (which will probably result in very different solutions). The former is clearly the golfier version but the other one is would be a lot neater. I'll give a 500 rep bounty to the first person who manages to write ei...
1000 Rep for a modulo in Brain-Flak
The current record for the shortest modulo is 64 characters:
({}(<()>)){({}[()]<(({}()[({})])){{}(<({}({}))>)}{}>)}({}{}<{}>)
This was set by Dennis here.
If you can implement modulo in less than 64 characters in Brain-Flak, you will get 1000 rep.
1000 f...
50 rep for a quine in Logicode
It's what it says on the tin. Just write a quine for Logicode, and post it on Golf you a quine for great good. Simple as that.
You are allowed linefeeds below the output.
I will be offering 50 rep to whoever can complete the task. Just write a comment down on thi...
@Lynn idk what kind of explanation you want. you can look at it in terms of 4 different types of cells (not including newlines), either [OX] or [ -] or [ |] or [ -|+], and the latter 3 kinds of cells can be calculated by looking at certain neighbors
Suppose that we have a wallet whose total amount(let's say it's N) is given by the user at runtime of the programme.
The restriction in the contents of the wallet is that only 1,2,5 or 10 notes are allowed.
**The question ** is to print all possible combinations of the notes adding to the total o...
This is a code golf challenge I thought of with a mathematical bent. The challenge is to write the shortest code possible such that is an open question whether or not the code terminates. An example of what I mean could be the following piece of python code, adapted from an anwser to this cs stac...
Print the Greek alphabet!
Fairly obviously, you have to print the Greek alphabet. But I thought I'd make it slightly more interesting, so there's a twist: when your program is ran with an argument (anything), it should output the Greek alphabet in lowercase.
Information
Greek alphabet (Capita...