« first day (2414 days earlier)      last day (2436 days later) » 
00:00 - 15:0015:00 - 23:00

12:14 AM
4
Q: Output the Trinity Hall Prime

StephenBased on this Math.SE question; number copied from this answer. Number originally from a Numberphile video, of course. Your task is to output the following 1350-digit prime number: 888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888111111111111111111111...

 
12:25 AM
0
A: Sandbox for Proposed Challenges

WallyWestEthiopian Multiplication This question is inspired by this answer. Turned out I used to use Ethiopian Multiplication when I was a kid, but had never known the name of the method until recently. Ethiopian multiplication is a method of multiplying integers using only addition, doubling, and halvi...

 
7 messages moved to Trash
 
1
Q: Sum of multiples of N

Kevin HalleyWrite a program that displays on the screen the sum of the multiple numbers of an N number (1 ≤ N ≤ 100) entered by the user in the range of 1 to N. This is OEIS A000203. Ex: Input: 7 7 / 1 = 7 7 / 7 = 1 7 + 1 = 8 Output: 8 Input: 15 15 / 1 = 15 15 / 3 = 5 15 / 5 = 3 15 / 15 = 1 15 + 5 ...

 
Fixed it!
 
^ like caret reply you mean?
oh wait I need to reload
^^^ like caret-reply?
ok apparently not then
 
If you're using the bundle you'll need to rebuild it or you can redownload it from the github.
@HyperNeutrino I promise it works!
 
12:40 AM
@ATaco test
yay it works :D
oh god
what bothers me is the '
 
Why are you currently in Trash?
 
oh I was wondering which messages you trashed lol
Should I add an explanation for this
 
Yes
 
You could start by explaining why you're using M and not Jelly.
 
12:51 AM
I fixed that
I originally thought that the numbers would be too large for Jelly to handle
then I realized Python
 
@ATaco only thing that this message could have had to be more australian is the land down under song
 
(Fixing that bug now, had to deal with caretreply as priority)
 
There's meta consensus to allow new languages/versions on old challenges, but what happens in the (edge) case where I fix a bug in my language that I found while trying to solve a challenge?
 
you... use the new version...? I wouldn't consider than an "edge case" since it happens quite often sometimes :P
 
1:00 AM
@HyperNeutrino yeah but I fixed the bug because of the challenge... it just feels kinda close to implementing something because of the challenge..
 
well if the feature was there already but just not implemented correctly, then¯\_(ツ)_/¯
 
@HyperNeutrino what if I accidentally assigned an operator to the wrong character so it broke some syntax in the libraries and now it's fixed because of a challenge I want to answer...?
 
that's fine I hope; I've done it before many times and I'm still alive so...
 
xD okay
 
@DJMcMayhem 54 bytes
 
1:16 AM
Alright, I've fixed the multiple Strawpoll bug.
 
Noice
 
Bonus points, it's fixed server side.
@2EZ4RTZ No option for "I created them?" :P
 
2:03 AM
@ATaco XD nope
 
 
2 hours later…
4:20 AM
0
A: Sandbox for Proposed Challenges

geokavelThe "Code Golf Ratio" code-golfstack-exchange-api Don't you ever want to know if your code golf score is "good enough" for the language your using? How can you measure which golf is better when one is in Jelly and one is in JS? Well, now we can! Task Take two programming language names as inp...

 
0
Q: Piles and Piles of Pebbles

fireflame241My job is stacking pebbles into triangular piles. I've only been doing this for a century and it is already pretty boring. The worst part is that I label every pile. I know how to decompose pebbles into piles of maximal size, but I want to minimize the number of piles. Can you help? Task Given ...

 
@ATaco can you extend your mathjax userscript to google hangouts :3
 
Nah, that means I have to use google hangouts :P
 
:| what is wrong with google hangout
@ATaco alternative idea: discord bot which uses taco mathjax
theres this thing called MathBot for Discord but it sucks cause equation look like they are rendered on potato
 
4:37 AM
Doable, I do have a Discord bot sitting around.
 
4:52 AM
50
Q: Build a fewest-moves freecell solver

Joe Z.In the game of Freecell, you are tasked with building four foundation piles in suit from ace to king, on a layout where you build downward in alternating colours. However, you can only build one card at a time, so you are given four "free cells" each of which can contain one card to help you move...

 
5:32 AM
@Downgoat what do you mean, they are rendered on potato
 
6:17 AM
@ASCII-only Who signed me up to be a rendering farm?
 
Someone pls do this in Charcoal ty
@Potato44 mayube probably
 
6:48 AM
0
Q: Ethiopian Multiplication

WallyWestThis question is inspired by this answer. Coincidentally, I used to use Ethiopian Multiplication when I was a kid, but had never known the name of the method until recently. Ethiopian multiplication is a method of multiplying integers using only addition, doubling, and halving. Method: Take t...

 
 
2 hours later…
8:35 AM
0
Q: Build the Trinity Hall Prime

Cyril GandonBased on this challenge and this Math.SE question. Idea originally come from a Numberphile video. The goal is to reproduce the logic of Professor McKee when he builds this prime. Your task is to build the Trinity Hall Prime, at a much lower scale. You are given a single number N greater than 2, ...

 
9:18 AM
0
A: Sandbox for Proposed Challenges

Glorfindelkolmogorov-complexity As some kind of tribute to those affected by Harvey, Irma, and other hurricanes. Input Your program must support one (or both) of these input modes: An integer n, ranging from 0 to 20 (or 1 to 21 if you like to have a one-based solution) A single character c. You may ch...

 
 
1 hour later…
10:32 AM
D: Bubblegum is beating Charcoal
CJam too D:
 
maybe charcoal is just bad :P
 
10:50 AM
charcoal is for ascii art not numbers
 
@EriktheOutgolfer but it is ascii art
 
wait isn't that better than the 100-something posted version?
 
@EriktheOutgolfer yeah, just golfed it :P
but still not good enough :/
 
The question doesn't require new-lines right? I mean you can print a continuous number, right??
 
I think it's shorter to do with newlines in charcoal?
it has reflection
 
11:02 AM
@EriktheOutgolfer My old answers used newlines, RLE is just way shorter without newlines
@EriktheOutgolfer see
@EriktheOutgolfer reflection?
 
the commands
 
I was trying to RLE and then using characters but the 445 something zeroes pissed me off... :/
 
Yeah, I use ReflectCopy there
@officialaimm easy, 255 zeros + 190 zeroes
obviously
like how Charcoal RLE has a limit of 32
 
@ASCII-only Yea... Jonathan Frech has commented a 205 bytes solution in python...
 
@officialaimm yeah what about it
 
11:08 AM
uses the same technique I was intending to do...
@ASCII-only how about doing the upper symmetrical half and lower half separately in charcoal? I am feeling it might help.
 
I don't want to reopen the box of Pandora, but do you think that the multiplication restrcition for the Ethiopian multiplication challenge falls under unobservable criteria?
 
@officialaimm That's what I did in SOGL
 
I want to hear the opinion of a more experienced user, as that is like at the border of it.
 
@dzaima Nice. +1 :)
 
@officialaimm Upper symmetrical half?
 
11:14 AM
Yeah, just before the first 0.
 
@officialaimm >_> I already mentioned I'm doing a `ReflectCopy
 
Hmm... What does ReflectCopy do?
 
@officialaimm reflect and copy :P
 
reflectcopy: left so it copies left half of the screen to the right?
 
:left is a direction
basically it puts an axis on the left and reflects over that
Charcoal really needs a way to split a string into parts of a specified length/ n equal parts
 
11:22 AM
@ASCII-only oh, it doesn't have that? split into parts of length n is n in SOGL and it's very useful in all kinds of questions. Mainly so I don't have to specify a newline every x characters with compression
 
@dzaima yes it is :|
note to self: implement chop into parts of length x
 
@ASCII-only M¹⁴↓M²⁵→ Here, cant you jump to a specified coordinate like something like J(14,25).
 
@officialaimm lol thanks forgot about that
 
11:45 AM
@Mr.Xcoder I'd say it's unclear what you're asking but it's been a while since I closed stuff like that
 
since I didn't have enough feedback yesterday
can I have feedback here please?
I'll probably post it shortly
 
@JungHwanMin this is PPCG, if you don't know then you need to go on a pilgrimage to esolangs (Conor-land/Tux-land are fine too)
 
btw it's easy to get a necromancer badge on meta lol
alright, posting the challenge...
 
12:01 PM
@EriktheOutgolfer I think it should be ok to post.
lol
 
checking for dupes...
 
@EriktheOutgolfer Really? I don't think you'll find any lol
 
there's only one way to find out for sure :p
aaaaand
posted :D
 
wow that was fast (upgoated already)
 
well it was in the sandbox for 72+ hours
 
12:04 PM
@EriktheOutgolfer I was talking about the new questions tab loading your question, not you posting it
 
oh the tab is usually fast lately
 
It usually takes some time, even for my own challenges.
 
on the other side, the reputation tab is slow
I mean, you see the upvote before the +5
the latter comes in 1-2 seconds later
 
2
Q: Kolakoski-like self-referencing sequences

Erik the OutgolferThis is how the Kolakoski sequence (OEIS A000002) is defined: The Kolakoski sequence is a sequence that contains 1 and 2, and the nth element of the sequence is the length of the nth group of equal elements (run) in the sequence itself. The first 20 terms of the sequence and the respective le...

 
@NewMainPosts hey that was fast!
 
12:08 PM
@EriktheOutgolfer Apparently @NewMainPosts is loyal to you... :D
 
if that's the case (which I don't believe so) then something very bad is happening
 
12:21 PM
btw the question isn't that hard is it?
 
@EriktheOutgolfer No, it's not.
 
I guess I should be more patient then :p
 
But I lack my problem solving spirit rn
And I have the algo in mind, but I am very lazily translating it to Python.
Damn, wrong algo
 
well take your time
not like you're obliged to answer :p
 
@EriktheOutgolfer Ignore my comments
 
12:33 PM
alright
 
@EriktheOutgolfer What makes it slightly harder to solve and golf is the fact that it is self-referential
 
I don't really want to answer it myself but I can
but that may be because it's already 72+ hours in the sandbox
 
You better just wait for a couple of days
 
I'd like to see creative solutions and such, there might be different algos so I don't wanna spoil it right away
 
@Mr.Xcoder If cQuents can't do it then it's not good enough :P
 
12:39 PM
@ASCII-only Ask Stephen about that
 
@Mr.Xcoder duh forgot about that tag
 
@EriktheOutgolfer Did you golf it already in Python?
 
not golf
but if you have the algorithm then you can answer it
 
No, I was curious about your byte count if so
 
12:42 PM
that is, even removing unnecessary whitespaces and other trivial stuff only makes it an attempt at golfing
 
13 mins ago, by Mr. Xcoder
Damn, wrong algo
 
it's me who has an algo
@Mr.Xcoder want me to spoil it? ;p
 
Of course not
now
BAH list index out of range
 
hey I got an answer finally!
 
Wow wonderful Pyth answer
That's absolutely gorgeous
 
12:52 PM
0
Q: Continue this sequence of numbers

Zsolt SzilagyYou know that task from IQ tests: You are given a sequence of 5 integers <1000, and must "guess" the sixth. E.g. 1,2,3,4,5 : 6 110,100,90,80,70: 60 2,4,8,16,32: 64 1,17,8,99,23: NaN The algorithm is either "add a fixed number to the last one" (first two examples), or "multiply the last numbe...

 
@EriktheOutgolfer I wonder how you didn't single-handedly close that. Did you vote for "Unclear" instead and hence didn't dupe hammer?
 
yeah
it was unclear to me
and I only use dupe hammer if it's clear to me
otherwise I'm not really sure if it's a dupe
 
oh god... I think my algo was correct but instead of having helper_sequence = l[0]*[l[0]] I used helper_sequence = l[:1]... duh... refactoring
 
your algo seems a bit messed up
no offense btw
 
it is messed up
 
12:58 PM
@ASCII-only the current version of cQuents can't do that AFAIK, cQuents 0 is really weak
and I am not keeping up with writing the new version
 
@Stephen :|||||||||
 
I can't insert an arbitrary number of values into the sequence, or look back at more than one value at a time
So a sequence like 1,2,2,3,3,3,4,4,4,4,5... would destroy me
currently
 
Me doing the divisors sum challenge. Input: 20 ... Output: -1 ... Huh, I think I did something wrong.
 
@AdmBorkBork You... tried in Powershell right?
 
1:08 PM
divisors in powershell...seems legit
 
Yeah, but I dun goofed somewhere.
I'm just going to rewrite it rather than track down the bug.
 
I am going to smash my head using the wall because at the moment I am not capable of writing a simple algorithm.
@Erik And now you can spoil the byte count.
 
I don't really have any
 
You can try to get a rough approximation though
 
that's what I'm doing
 
1:14 PM
8.1 richter EQ hits mexico!!
 
@Mr.Xcoder in python?
 
Of course
 
good
 
now 89 :p
 
1:22 PM
Getting a bit closer.. I end up with [1, 2, 3, 1, 2, 2, 3, 3, 3, 1] now, for some reason
I am a bit surprised no one answered it in a mainstream language yet
 
1:34 PM
@ASCII-only oh and I can't take input lists either
 
@Stephen :/
 
hi I have a homework question (math) that I'm kinda stuck on does anyone know some group theory?
 
@HyperNeutrino yes no kinda
 
k it's from the putnam competition
so like I have about a .001% chance of solving it
CMC: Prove that no group is the union of two proper subgroups.
Essentially, let G be a group, let H_1, H_2 < G, let H = H_1 \union H_2. Prove that H != G
 
For reading explanations of answers in languages you're not familiar with, do you prefer two-column style (like found on a majority of golflang answers) or prose-style?
 
1:49 PM
huh?
 
@HyperNeutrino Unless I'm not understanding something, this is false. Take the group of whole numbers and split it into proper subgroups of odd numbers and even numbers. Then the union is the original group.
 
@AdmBorkBork if it's a golfing language the two-column style is probably ok since the code is going to be like one character long. In general I like prose for regular languages since they're often a bit more easily read in their own right and consequently are a bit more verbose
 
That's kinda my feeling, too. I've been experimenting with two-column style on a couple recent really-short PowerShell answers, and it's felt kinda weird.
 
@AdmBorkBork The odd numbers is not closed. 1 + 3 is not odd.
 
OK, see, I was missing something.
 
1:55 PM
:P
Also the even numbers doesn't have an identity because 1 is not even (if multiplying)
If adding then odd doesn't because 0 isn't odd
oh well :P
The problem is I have no idea from which direction to approach this proof
maybe by contradiction/contrapositive? since it's a "prove that none"
 
Jeez, I vaguely remember this stuff from like 14 years ago... Is there any group that can have two proper sub-groups? Wouldn't that mean that there would necessarily be two identities in the parent group?
 
No?
Two proper sub-groups are not necessarily non-intersecting...
Like if you take all positive rationals under common multiplication, there are infinite proper subgroups: all powers of any member (including negative powers)
Like ... 0.5, 1, 2, 4, 8... and ... 0.25, 1, 4, 16 ...
 
Oh man, this is hard, trying to remember stuff from class that far back that I haven't used since.
 
haha
 
2:03 PM
yeah the way I think I might do it is like try to prove that if the union of two proper subgroups is the original group then one of these subgroups has to not be closed
 
CMC: given n and p where p is a prime, output all positive integers that leaves a remainder of 1 when divided by p and is a divisor of n
 
@ETHproductions we seem to have a problem with the OEIS snippet
 
@LeakyNun jelly, 7 bytes: ÆD%’¥Ðḟ
 
and extra brownie points if you know what it is for
@orlp might know
 
@LeakyNun PowerShell, 42 bytes -- param($n,$p)1..$n|?{!($n%$_)-and$_%$p-eq1}
 
2:13 PM
05ab1e, 4 bytes: Ñʒ²%
 
huh I wonder what it's for
well it gets all numbers kp+1, k in Z, such that kp+1 divides n
but I don't know what that's useful for :P
 
@HyperNeutrino I don't think you would know
 
Ah ok
 
@LeakyNun You're a smart person. Can you point @HyperNeutrino in the correct direction regarding the groups/subgroups question from a half hour ago?
 
@HyperNeutrino use lagrange for overkill :P
 
2:20 PM
huh?
 
33 mins ago, by HyperNeutrino
Essentially, let G be a group, let H_1, H_2 < G, let H = H_1 \union H_2. Prove that H != G
Lagrange's theorem
 
o
wait the order of a group is its size???
 
@HyperNeutrino yes
 
goddammit I thought it was the maximum of the orders of its elements
welp ._.
 
the order of an element is the order of the (sub)group it generates
 
2:22 PM
now I know how to do the other 3 homework problems I couldn't figure out
facekeyboard
 
that's the connection between order of a group and order of an element
 
Ah okay. That makes sense now, thanks.
another question was prove that all groups of order 4 are abelian
 
Yay
 
there were 3 cases that I came up with
G = {e, a, a^2, a^3} which is obviously abelian
G = {e, a, b, ab} which has to be abelian since if ab != ba then |G| >= 5
and G = {e, a, b, c} which doesn't need to be considered since it isn't closed
I think that's right; not sure tho
 
26 secs ago, by HyperNeutrino
G = {e, a, b, ab} which has to be abelian since if ab != ba then |G| >= 5
why can't ba be any of the three other elements?
 
2:29 PM
well if ba = a then b = e
if ba = e then ab = e
if ba = b then a = e
unless I'm forgetting some rule
 
all correct
 
but
there's a misconception that you conveyed
namely, that a group is well-defined without an operation
 
yeah true...
huh
 
and that {e,a,b,c} cannot be a group.
 
2:33 PM
actually
we could have ab = c
bc = a
ca = b
 
@HyperNeutrino bingo
 
so yeah nvm
So then in that case, if ba != c then ba must equal e, a, or b, but that doesn't work like previously written above
same for everything else
?
 
right
 
<- has no idea what's happening
 
2:34 PM
lol
university year 2 or 3 group theory is happening (I forget which)
 
This is really fascinating like half-remembering this stuff and trying to follow along.
 
more like year 1, @HyperNeutrino
 
oh ok
 
I think it's an online competition?
 
no it's my homework
 
2:35 PM
oh
and you don't know what year you are?
3
 
@HyperNeutrino a^4=e?
 
@ASCII-only yes
 
@EriktheOutgolfer Well I'm in Grade 10
 
where e=identity?
 
2:37 PM
yes
 
Is this modular multiplication
 
@ASCII-only this is a group.
 
Hello
 
@Mr.Xcoder hi
 
Hi @Leaky
 
2:39 PM
@Mr.Xcoder hi
 
@LeakyNun under what operation though
 
unspecified
 
@cairdcoinheringaahing If you mean this challenge, I don't see anything wrong
 
Right
 
because I'm trying to prove something about the operator (commutativity)
so knowing the operator would be pointless then :P
 
2:41 PM
Looks a lot like multiplication though, I would have used a placeholder symbol :P
 
@ASCII-only {e,a,a^2,a^3} is a group under "multiplication" if you further specify that a^4 = e
 
@ASCII-only For ^, if you want you can just imagine a = i.
so like {1, i, -1, -i}
 
@HyperNeutrino that must hurt
 
@ETHproductions Yeah, the user who found the "bug" found out the solution. I forgot that A17 was uncomputable, so it was excluded
 
2:45 PM
Yeah
 
the thing about group is that they are abstract
 
@HyperNeutrino and for the third case it's 1, i, j, k?:P
 
@ASCII-only no, because ji=-k
(the quaternion group has 8 elements)
 
Oh wait he's trying to prove commutativity
 
yes :p
 
2:47 PM
0
Q: The Uncommon Factor Number

AdmBorkBorkBased on a chat message The Challenge Given an input number n > 9, construct its reverse, ignoring leading zeros. Then, construct a list of all prime factors that the number and its reverse don't have in common. Multiply those factors together to create the Uncommon Factor Number of the input. ...

 
Dang, that was fast.
 
for a moment there was a downvote wait
 
It's still there, it's just that I upvoted right after so it looked like it disappeared unless you click the expand vote :P
 
@HyperNeutrino done?
 
@HyperNeutrino apparently this one isn't needed?
 
2:51 PM
@LeakyNun I think, I'm just writing it out semi-formalized and then I'll check if I missed anything
 
Because it's equivalent to the third one
 
alright
@ASCII-only, a group is not well-defined without an operation.
{e,a,b,c} can mean any group with 4 elements at all.
 
Yes but aren't the tables the same if you replace ab with c
Or am I understanding stack exchange incorrectly
 
@ASCII-only but it can also mean the first group
 
0
Q: Encoding data in flexible inputs

HyperNeutrinoMost challenges that take a true/false or right/left or something like that input allow you to pick any two distinct values for these inputs. Recently, this answer came up. Clever use of this specification; however, I feel like this is cheating in some sense, and, as AdmBorkBork points out, it is...

 
2:55 PM
Well I was beaten to the Jelly answer so I'll go do my homework now :P
@NewMetaPosts That was... slow :P
 
@LeakyNun oh true (but basically it wouldn't be needed in a proof that all order 4 groups are commutative right?)
 
@ASCII-only in what proof?
brb
 
Unless I have no idea what hyperneutrino is doing
 
0
A: Sandbox for Proposed Challenges

Anthony PhamErdős–Straus conjecture This is a conjecture proposed by Paul Erdős and Ernst N. Straus where it simply defines for any x >= 2, then: 4 1 1 1 --- = --- + --- + --- x a b c where a, b, and c are whole numbers (positive integers). For example, if x was 5 then: 4 ...

 
@ASCII-only I am proving that a group of order 4 is necessarily Abelian
 
00:00 - 15:0015:00 - 23:00

« first day (2414 days earlier)      last day (2436 days later) »