Background
The number 1729 is the Hardy-Ramanujan number. An amazing property of it was discovered by S. Ramanujan (who is widely regarded as the greatest Indian mathematician1), when G.H. Hardy paid a visit to him in a hospital. In Hardy's own words:
I remember once going to see him when he...
@LeakyNun 105 is a Zeisel number because its prime factors are 3, 5, and 7, which falls into the recurrence pattern (P(n) = a*P(n-1) + b) where a = 1 and b = 2
@Uriel They could delete the birthday info and replace it with newly culled info (the chat msg which tipped them off), and the same goes for the email (from their comms with him).
@Adám COPPA is US Federal low for online child protection which prohibits any online service from knowingly allowing < 13yo to own and operate accounts IIUC
A Zeisel Number is a square-free integer with prime factors that fall into the pattern:
P(n)=a*P(n-1) + b
where a and b are integers and n is the index number of each prime factor in the factorization, sorted from lowest to highest. For the purpose of determining Zeisel numbers, p(0)=1.
The Ze...
A Colombian Number is an integer that cannot be written as the sum of any other integer n and the individual digits of n. This property is specific to the base used to represent the integers. Base 10 Colombian Numbers are sequence A003052 in the OEIS
Your Task:
Write a program or function that...
Well, I thought of the challenge just a while ago, and wrote an obvious JS solution, since I am not a great golfer. But, I understand that believing me is not a good idea, as who knows, I might be an extraterrestrial super-intelligent Tardigrade :P
@ETHproductions Let's assume you'd lose 70 rep from votes you'd received from that user, another 2 from a suggested edit, and then you earned 1 back due a downvote you'd cast on one of their answers.
I have only downvoted a single post on entire SE network, just because of losing that -1 rep. I am waiting for the post that I downvoted to be edited, so I can undo my downvote :P
var d={8:'b',6:'g',7:'l',1:'i',0:'o',5:'s',2:'z',4:'h',3:'e'},t=s=>s.substr(0,10).toLowerCase().split('0.').reverse()[0].replace(RegExp('('+Object.keys(d).join('|')+')','g'),(_,w)=>d[w]||'').split('').reverse().join('');
pretty scary
it can actually be golfed as: s=>[for(w of s)'oizehsglb'.search(w)].reverse().join``.replace(/^0/,'0.') though
In schools across the world, children type a number into their LCD calculator, turn it upside down and erupt into laughter after creating the word 'Boobies'. Of course, this is the most popular word, but there are many other words which can be produced.
All words must be less than 10 letters lo...
Actually I do want to know, why the heck would I have searched "fantasize about being a goat" on any site? It must have had something to do with Downgoat but I have no idea what
I seem to recall someone here mentioning colour blindness / colour vision deficiency. Does anyone have a preferred 16 colour palette that won't exclude anyone without full colour vision?
And then it's going to pick peers based on (a) available bandwidth (which correlates very loosely with ping) and (b) whether they have the chunks you need
@Lembik so, the tracker doesn't know how fast the connections to you are. The whole point of BT is that connections are peer-to-peer, it can't know that. It gives you everything and it's up to your client to pick optimally.
@Lembik as a trivial @example I'm in Canada. Most residential internet connections have awful upstream capacity.
So this may well fall into the category of "if you don't even know where to start, you have no business attempting it", but I'm wondering how hard it would be to create "GolfSQL", a made-up interpreted SQL language variant that "compiles" and runs against normal MS-SQL servers (cause that's what I know and have access to, and there is no way I'm writing my own SQL back-end engine)?
Mostly I'm thinking of just having abbreviated keywords for obvious golfing reasons
@BradC Writing a compiler that takes your new language and outputs a SQL query should be much simpler than writing an engine. It could be as simple as a look up table to start with, and then gradually add complexity over time
@BradC If all of your input terms (R, x, 7) are unique and not contained within each other, it's very simple. If you have some that overlap, like RR and R, then there would be ambiguity and you'd need a way of resolving that which makes it more complex
In other words, if you design the language carefully, you can make it so that writing the compiler is trivial
@trichoplax Hmm, maybe I'd be better off using completely unique characters, then, so I'm guaranteed not to overlap with other TSQL content. Like all the funny stuff we see in other golfing languages (NηFθï“뙡}ʠƈ) and stuff
@JNat Thanks. What would I write? I'm thinking something along the lines of "my account was deleted for being underage, but I'm 14 now, what should I do"
>.< struggling very much with not being able to click "edit"
@HyperNeutrino Just explain the situation. I'm likely gonna be the one on the other side, and this is mostly so we can have this conversation privately rather than out here :)
CMC: A057946(n): Bad hexadecimal notation for n: write n in hexadecimal notation, replacing digit ten with "10", digit eleven with "11", ... and digit fifteen with "15".
Create a program to greet someone with the words "Hello Player!" when they run the program. However you cannot use any letters in the alphabet in the displayed message so you must use keys like ( or - to shape out the letters. An example of a letter made of these keys is below:
/\
/--\ = w...
Vim is a great text editor for unix systems, but it's notorious for being difficult to exit.
Write a full program that will output :q to exit Vim. It should then read a single line of input, as it will then either be given a bash prompt, in which case the exit was successful, or an error, in whi...
I seem to recall someone here mentioning colour blindness / colour vision deficiency. Does anyone have a preferred 16 colour palette that won't exclude anyone without full colour vision?
@Adám I was thinking of taking equally spaced tones and then adding colour, so it would be visible to someone who only sees greyscale, but also more distinguishable with colour vision. I'm not sure if that makes it better or worse for partial colour vision though
Why reinvent the wheel? There even is a standard for a set of sixteen colors, of which you could pick ten. This is the ANSI set http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
The ANSI color are equally distributed on the RGB cube, which is, I think, better suited for this problem than the ...
@trichoplax You can't reliably get equally spaced tones so that they appear equally spaced independent of degree of color vision, as some colors appear brighter than others.
@trichoplax I'd use a grey scale theme with accent colors (dividing lines, shadows, highlights) that don't really matter.
I'm confident enough to anticipate my KotH being viewed by at least one person with partial colour vision. I'm not so confident that I'm expecting anyone to print it out though :)
The Dyalog IDE allows assigning a hotkey for each syntax coloring/IDE color scheme. Useful to temporarily switch to show or highlight certain aspects of the code, like global variables, optimized expressions, comments, etc.
@trichoplax Looking at DJ's doc. A strong blue, strong green, strong yellow scheme seems to be universally recognizable by color seers (but not monochromes of course)