Deutsch English Français Italiano |
<v6km1v$1jcln$6@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: More complex numbers than reals? Date: Wed, 10 Jul 2024 00:53:19 -0000 (UTC) Organization: A noiseless patient Spider Lines: 23 Message-ID: <v6km1v$1jcln$6@dont-email.me> References: <v6hohq$11nib$1@dont-email.me> <87msmrsd6f.fsf@bsb.me.uk> <v6igp5$18sp0$4@dont-email.me> <20240709014307.800@kylheku.com> <v6k1ce$1g6tr$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 10 Jul 2024 02:53:20 +0200 (CEST) Injection-Info: dont-email.me; posting-host="83faea724cb5b4bced74d3ca3430f18f"; logging-data="1684151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FYx/SuLKAynSFq9Udy9XF" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:xBqUvIrPtcqtKtCKAPadzkX8/rA= Bytes: 1749 On Tue, 9 Jul 2024 12:00:29 -0700, Chris M. Thomasson wrote: > By the way, did you take a look at my "fun" > experiment wrt storing data in the roots of complex numbers? You can encode messages in anything. #!/usr/bin/python3 import sys charset = ' .Hadefghilmnoprstwx' modulo = 23 s = 1193321429126088671017703197607273471738040746714878246039040663141374779777444615292185709614467374016367591074170680369683264762098941 num = iter(range(2, 9999)) while s != 1 : n = next(num) if s % n == 0 : sys.stdout.write("%s" % charset[(n - 1) % modulo]) s //= n #end if #end while sys.stdout.write("\n")