24
2
Your task is to print this exact text:
אבגדהוזחטיכךלמםנןסעפףצץקרשת
(You are allowed to print a trailing newline)
SHA256 hash of the UTF-8 encoding of the text:
0ab6f1e0bf216a0db52a4a5a247f95cba6f51496de7a24dfd01f3985dfcf6085
Base64 encoding:
15DXkdeS15PXlNeV15bXl9eY15nXm9ea15zXnted16DXn9eh16LXpNej16bXpden16jXqdeq
Rules
- You can't use a builtin outputting this text.
- Standard loopholes are disallowed.
- This is code-golf, so the shortest answer wins.
Good luck!
5I noticed the code points are not directly in order. You have
1488, 1489, 1490, 1491, 1492, 1493, 1494, 1495, 1496, 1497, 1499, 1498, 1500, 1502, 1501, 1504, 1503, 1505, 1506, 1508, 1507, 1510, 1509, 1511, 1512, 1513, 1514
. I don't know very much about Hebrew, so could you confirm this is indeed intentional? – James – 2016-10-21T17:27:21.767@DJMcMayhem I noticed that too, that's probably what makes the challenge a challenge. – Magic Octopus Urn – 2016-10-21T17:29:15.853
11@DJMcMayhem Unicode list final letters before normal letters but in the text in the question normal letters are listed before. It was not really intentional, but at least it encourage answers that are not as boring as
print(map(chr, range(x, y)))
– TuxCrafting – 2016-10-21T17:29:57.507Because Hebrew is an RTL language, I'm not sure what the exact text is. Could you please post a base-64 encoding of the UTF-8 bytes or something equally unambiguous? – Peter Taylor – 2016-10-21T22:06:13.473
@PeterTaylor Done – TuxCrafting – 2016-10-21T22:08:54.823
6אני מדבר עברית! – OldBunny2800 – 2016-10-22T03:34:58.903
1@OldBunny2800 גם אני :) – TuxCrafting – 2016-10-22T09:49:42.167
1Hebrew is hard, I can't make the SHA256 hash match even with a text editor… – Angs – 2016-10-22T13:41:51.723
@TùxCräftîñg Seriously though, I think "me too"/"thanks"/etc. comments are not constructive. – Erik the Outgolfer – 2016-10-22T16:23:36.490
6Aleph null, aleph one, aleph 2, ... – user41805 – 2016-10-22T18:21:00.060
A cryptographic hash allows checking whether the output string is correct, but if it isn't then it doesn't help to identify why not. – Peter Taylor – 2016-10-22T18:30:46.783
2@Angs That's because it really doesn't match.
echo 15DXkdeS15PXlNeV15bXl9eY15nXm9ea15zXnted16DXn9eh16LXpNej16bXpden16jXqdeq | base64 -d | sha256sum
producesf1d4b9c12a197912a4bdb80fb3e4d3fad5a0d9b7edd243fae7b2ab3450618036
. – hvd – 2016-10-23T15:07:26.717@DJMcMayhem I know some hebrew, I can explain that one..(and you can verify on charmap), some letters have 2 forms like in english every letter has two forms 'a' 'A' 'p' 'P' in hebrew only some do. . Unicode puts them adjacent, and the poster has put them the other way to how the unicode puts them. If you open charmap and enter 05d0 (the utf-16 code for the first letter), you see all the hebrew letters with their description e.g. kaf and final kaf or as unicode places them. final kaf, and kaf.. – barlop – 2016-10-24T06:50:09.667
Are trailing newlines allowed? – Mego – 2016-10-24T08:49:58.020
@TùxCräftîñg Well, when you say "print this exact text" and provide a hash and a base64-encoded version that don't include the newline, it's not particularly clear. – Mego – 2016-10-24T09:32:26.843
2Downvoted for asking us to output "this exact text" when, in reality, it requires the outputting of slightly different text. – Shaggy – 2017-06-21T10:22:00.097
Is the hash and base64 encoding with or without the trailing newline? – David Conrad – 2017-06-23T00:17:21.063
איך הולך אחינו? – sagiksp – 2017-07-09T23:38:18.847
""<>Alphabet@"Hebrew"
in Mathematica. – alephalpha – 2017-12-27T17:15:12.950