interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / tasks / thue-morse / oracle.py

4 lines · 229 bytes Raw Blame History
1# Independent reference for "Thue-Morse" (Python 3, standard library only).
2# expected.txt is this program's stdout; omc never produced it.
3for k in range(7):
4 print("".join(str(bin(i).count("1") % 2) for i in range(2 ** k)))