New answers tagged

1

JavaScript I'm actually not sure it's possible. I suspect if a solution exists, it's purely arithmetic. So the content of any cell will be from this set 0123456789+-*/ ~!%^|&. I tried for several hours without success. The main problem is that for the last column (or row) to have any meaningful calculation, one of the rows (or columns) leading to it ...


14

Polyglot, 10x10 0 14 5 16 7 18 9 20 10 12 13 This yields the following row/column/diagonal programs (one per line): 0 01 0 2 3 4 5 6 7 8 9 10 011 12 13 0 ...


13

05AB1E, 4x4 5x5 8www4 w3Tαw Uw₃4< XθнĀ· wTwºß Try it online. (Loops over the rows; columns; main diagonal; and main anti-diagonal of the square, and will run it was 05AB1E code with .V, after which it discards everything that remains on the stack for the next iteration with )\.) Explanation: The w are no-ops, so I'll ignore them in the explanations ...


1

Keg, 8 bytes «H%c¡|,! Just the standard hello world program!¡


0

W, 11 bytes Just a compressed source literal. „o⑻'Ė⑨↷⑴Ï⑽Š


10

Jelly, A simple 3 by 3 Surely we can get a bigger one in Jelly, but if not... 5+2 +ḷ* 1+2 Try them online! (splits on new lines (Ỵ) and evaluates (V) each (€) as Jelly programs) 5+2 : 5 + 2 = 7 5+1 : 5 + 1 = 6 5ḷ2 : left(5, 2) = 5 2*2 : 2 ^ 2 = 4 1+2 : 1 + 2 = 3 2ḷ1 : left(2, 1) = 2 +ḷ* : left((0 + 0), 0) ^ 0 = 1 +ḷ+ : left((0 + 0), 0) + 0 = 0


13

Keg, 4x4 magic square 0601 7.92 3._. 8654 Try it online! Outputs 0601 - 1 7.92 - 7 3._. - 3 8654 - 4 /||||\ 98652 0 I can't believe this actually works! Programs need the -hr flag to properly output the required result. Test suite. Uncomment each line to run it. The -in flag is purely to make the test suite a nicer experience, as otherwise, the ...


Top 50 recent answers are included