« first day (184 days earlier)      last day (1746 days later) » 

9:09 PM
J4FNrPQ8?-3%@N1 4*J+1@N0?%2@N0=JJ=JZJ
Can anyone help me debug this sums of squares code?
 
@isaacg @Maltysen ^^^
 
@isaacg why doesn't this translation of the Julia answer by AlexA. not work for the multiplication answer?:
J}1Q;S{*.TJJ
The julia answer is supposed to sort(uniquify(x*transpose(x))
mine should do exactly that, why doesn't it work?
@Sherlock9 so you need help finding the unexpected EOF?
 
@TanMath Not exactly. The code prints when it shouldn't
 
@Sherlock9 when I run the code, I get an EOF error
 
I'm running it in the online interpreter
 
9:30 PM
@Sherlock9 i see...
 
 
2 hours later…
11:07 PM
@TanMath .T does matrix transpose. That means it needs a nested list. If the list isn't nested, it casts the list's int elements to unary range.
So .TS4 gives [[0, 0, 0, 0], [1, 1, 1], [2, 2], [3]].
 
@ThomasKwa ok.. so how would i do a transpose like in Julia
 
By the way, I hadn't used .T before. I figured it out by reading.
Well, Pyth doesn't do outer product when you multiply a column vector by a row vector.
So you wouldn't want to do transpose.
 
11:20 PM
@ThomasKwa .W!%Q2=Q/Q2Q the shortest way to divide Q by 2 until there are no factors of 2 left?
 
@Sherlock9 I'm not even very good at Pyth.
 
@ThomasKwa Ah well. Thanks
 
Why is everyone asking me their Pyth questions all of a sudden?
 
Nah, I just can't find the others
They might be asleep or something
 
/Qi^2QQ could work
Divides Q by gcd(Q,2^Q)
 
11:27 PM
@ThomasKwa what would i want to do?
 
No I found a stupid, stupif workaround
J4FNrPQ8 ?-3%@N1 4?-2@N1=J*J+1@NZ=JJ?%2@NZ=JJ=JZ;?QJ1
FREE AT LAST
 
@TanMath That's your job
 
@ThomasKwa so I want an outer product function?
 
@ThomasKwa How do you do an if without it breaking?
blarg
Oh wait
 
@Sherlock9 alienG again?!
 
11:39 PM
@TanMath I am an actual new guy
This is still much too long at 45 bytes J4FNrPQ8K%@N1 4IqK3I%@NZ2=JZ))IqK1=*J+1K;?QJ1
 

« first day (184 days earlier)      last day (1746 days later) »