Skip to main content
4 of 9
added 5 characters in body
Stewie Griffin
  • 46.5k
  • 13
  • 132
  • 295

32. Octave, 324 bytes

New requirement: All printable ASCII that are not previously forbidden must be part of the code. The complete list is: !"%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~.

.6;%+<-?|"	"|?-<+%;6.
f=@(x)all(ismember(horzcat(33,34,46,' %&''()*+,=/0123456789:;<->?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~'),x));	
%	>>
%	V'quQ9g8u'@f/&'A)eLS;p`t'{ZYv4R3aaa
%	bb
%	c
%	dd
%Henry Jams?Hi, Retina!	
%	e
%	ff
%	g
%	hh
%	i
%	jj
%	k
%	ll
%	m
%	nn
%	o
%	pp
%	q
%	rr
%	s
%	tt
%	u
%	vvv
%	a~

Try it online!

  1. It contains an e.
  2. Its length is even.
  3. Its length is a perfect square.
  4. It contains an a.
  5. It contains a > character.
  6. Contains the exact string ->.
  7. Contains the exact string Hi, Retina!.
  8. The sum of the first two Unicode code points is a multiple of 5.
  9. The 10-th character is a ".
  10. The last non-empty line does not have any duplicate characters.
  11. The first line is a palindrome of length > 5.
  12. The first line is exactly 21 characters long (not including newline).
  13. It contains a ?.
  14. It contains a |.
  15. Contains a +.
  16. It is at least 28 lines long.
  17. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  18. Contains Henry Jams? as a continuous substring.
  19. The last character is ~.
  20. It contains a C
  21. Each line contains a tab character.
  22. The ninth line contains at least 22 characters, excluding the newline.
  23. The tab character can't be the first character on a line
  24. The third-to-last character is a tab.
  25. There are at least 28 lines, and they are all distinct.
  26. There must be a > in the code and angle braces must be balanced.
  27. There must be more than 88 distinct code points in the program.
  28. The third-to-last character is a tab (#26) AND adjacent lines must have different lengths
  29. The first 4 hexadecimal characters of the MD5 hash of the program source must agree with the first 4 characters of the MD5 hash of the sentence: "And you call them steamed hams despite the fact that they are obviously grilled" (i.e. 86a6) as given by the GNU coreutils md5sum utility
  30. All printable ASCII characters that are not previously forbidden must be part of the code. The complete list is: !"%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~

For future answers:

  • The first line is a palindrome matching .␣␣␣␣␣␣␣␣"␣"␣␣␣␣␣␣␣␣. (you are free to fill in the ␣s).
  • The second character is one of ',16;, or a tab, or one of \x04\x0e\x13\x18\x1d.
  • Its length is an even perfect square.
  • There are at least 28 lines, and all lines are distinct.
  • The ninth line must have at least 22 characters (excluding the newline).
  • The last line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • Each line contains at least one tab character, but it can't be the first character on a line.
  • !". are banned except where necessary:
    • Only ! in Hi, Retina! and the two . and two " in the first line are allowed.
  • #$[\] may not appear in the program.
  • The program ends with: tab, (whatever), ~.
  • Angle braces must be balanced.
  • There must be more than 88 distinct code points in the program.
  • Adjacent lines must have different lengths
  • The first 4 hexadecimal characters of the MD5 hash of the program source must be: 86a6 (as given by the GNU coreutils implementation)
  • It contains all printable ASCII that are not previously forbidden. The characters are: !"%&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~.

I used this to make the program have the correct hash-code, whilst ensuring that the other requirements were also met.

Stewie Griffin
  • 46.5k
  • 13
  • 132
  • 295