38
6
The Arecibo message is a 1974 interstellar radio message carrying basic information about humanity and Earth sent to globular star cluster M13 in the hope that extraterrestrial intelligence might receive and decipher it... The message consisted of 1,679 binary digits, approximately 210 bytes...
The number 1,679 was chosen because it is a semiprime (the product of two prime numbers), to be arranged rectangularly as 73 rows by 23 columns. The alternative arrangement, 23 rows by 73 columns, produces an unintelligible set of characters (as do all other X/Y formats).
This is the message with color added to highlight its separate parts. The actual binary transmission carried no color information.
Your task is to output the Arecibo Message in the exact 23x73 arrangement shown in the image. Any of these output formats is acceptable:
- Text, using one character for ones and another for zeros (using the usual rules for row separation)
- A 2D array of two distinct values
- A 23x73 image with two distinct colors
- Aan uninterrupted stream of 1679 items of two distinct values (i.e. any of the above formats, but flat.)
- A 1679-bit integer. Indicate bit and byte order (endianness) in your solution.
For your convenience, here is a copy-pastable version (also an example output in text format):
00000010101010000000000
00101000001010000000100
10001000100010010110010
10101010101010100100100
00000000000000000000000
00000000000011000000000
00000000001101000000000
00000000001101000000000
00000000010101000000000
00000000011111000000000
00000000000000000000000
11000011100011000011000
10000000000000110010000
11010001100011000011010
11111011111011111011111
00000000000000000000000
00010000000000000000010
00000000000000000000000
00001000000000000000001
11111000000000000011111
00000000000000000000000
11000011000011100011000
10000000100000000010000
11010000110001110011010
11111011111011111011111
00000000000000000000000
00010000001100000000010
00000000001100000000000
00001000001100000000001
11111000001100000011111
00000000001100000000000
00100000000100000000100
00010000001100000001000
00001100001100000010000
00000011000100001100000
00000000001100110000000
00000011000100001100000
00001100001100000010000
00010000001000000001000
00100000001100000000100
01000000001100000000100
01000000000100000001000
00100000001000000010000
00010000000000001100000
00001100000000110000000
00100011101011000000000
00100000001000000000000
00100000111110000000000
00100001011101001011011
00000010011100100111111
10111000011100000110111
00000000010100000111011
00100000010100000111111
00100000010100000110000
00100000110110000000000
00000000000000000000000
00111000001000000000000
00111010100010101010101
00111000000000101010100
00000000000000101000000
00000000111110000000000
00000011111111100000000
00001110000000111000000
00011000000000001100000
00110100000000010110000
01100110000000110011000
01000101000001010001000
01000100100010010001000
00000100010100010000000
00000100001000010000000
00000100000000010000000
00000001001010000000000
01111001111101001111000
If your language, for some reason, has a builtin for the Arecibo Message, you may not use that builtin.
Good Luck!
UPDATE: I accepted the 05AB1E answer since it was the first one to be shorter than the original message. Don't let that dissuade you from new solutions.
UPDATE 2019-09-09: Accepted answer moved to a new 05AB1E answer, as it obsoletes the previous 05AB1E answer. Same point goes as previous update; new solutions still welcome.
9If a language has a built in for Arecibo message, I can tell, with all certainty, that I've seen everything in this world c: – Luis felipe De jesus Munoz – 2019-04-09T18:04:35.607
6Mathematica (IIRC) has an image builtin for Lena, so it wouldn't surprise me if it also has an Aricebo message as well. – Beefster – 2019-04-09T18:06:22.437
@RobertS. no because there are other valid formats besides text. – Beefster – 2019-04-09T18:27:57.087
4In the spirit of the original format, a flat result/output should be allowed. The whole point of 1679 bits is exactly that the proper number of rows and columns can be inferred from the signal length. – Adám – 2019-04-09T19:10:00.383
Are we allowed go return an array of strings, that do not represent lines? – Embodiment of Ignorance – 2019-04-09T21:51:00.173
@EmbodimentofIgnorance, how else would you represent it? – Beefster – 2019-04-10T04:29:34.320
So is my solution here valid?
– Embodiment of Ignorance – 2019-04-10T05:05:23.750@EmbodimentofIgnorance unless it either outputs lines of 23 characters or an uninterrupted stream of 1679 values, no. – Beefster – 2019-04-10T06:32:07.817
4
@LuisfelipeDejesusMunoz Mathematica has a builtin to determine goats in a picture, so an Arecibo message builtin wouldn't really surprise me either.. That language is built on builtins of the universe.. >.>
– Kevin Cruijssen – 2019-04-10T06:47:47.333As far as I know, they didn't even bother repeating the message. It was sent only once. As mentioned on Wikipedia, it was really just a (fun) technological demonstration. – Arnauld – 2019-04-10T07:08:23.867