443
How to write Hello World (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] cypherpunks@lemmy.ml 42 points 1 week ago* (last edited 1 week ago)

python -c 'print((61966753*385408813*916167677<<2).to_bytes(11).decode())'

how?

$ python
>>> b"Hello World".hex()
'48656c6c6f20576f726c64'
>>> 0x48656c6c6f20576f726c64
87521618088882533792115812
$ factor 87521618088882533792115812
87521618088882533792115812: 2 2 61966753 385408813 916167677

[-] palordrolap@kbin.run 21 points 1 week ago

perl -le 'use bignum;print+pack"H22",(61966753*385408813*916167677<<2)->to_hex()'

Alas, Perl doesn't bignum by default

this post was submitted on 20 Jun 2024
443 points (98.0% liked)

Programmer Humor

18232 readers
1605 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS