Live data from Hacker News

A prime number whose binary representation looks like a giraffe

reddit.com

1–10 of 82 posts

Re: A prime number whose binary representation looks like a giraffe

#4
The last line of the picture contains some 'noise':

0000000000000000000000000000000000000000000000000001000101101001

So the idea is that you produce any 63x64 binary image then you find a number up to 2^64 so that added to the number represented by the first image gives a prime. It's not exactly amazing, but clever enough.

Re: A prime number whose binary representation looks like a giraffe

#6
post #5

Did somebody stumble upon this by accident, or did they deliberately look for a prime number and play with the layout until they saw a picture? Either way, this is really cool.

They made/got the picture, converted it to a number (by interpreting it as binary), then incremented the number until they found the next prime. The incrementing is what made the "noise" in the bottom right.

Re: A prime number whose binary representation looks like a giraffe

#8

The last line of the picture contains some 'noise': 0000000000000000000000000000000000000000000000000001000101101001 So the idea is that you produce any 63x64 binary image then you find a number up to 2^64 so that added to the number represented by the first image gives a prime. It's not exactly amazing, but clever enough.

Or you can move the image on canvases of different size until you find a position/size where it is prime.

Several other methods can work... Primes are not rare at all - average prime gaps are fairly small in that domain...

Re: A prime number whose binary representation looks like a giraffe

#9
I think it would look much better had he put a frame around it with binary ones. It would not only hint about how to decode it, but it would also make it more likely to be prime (ending with huge number of 1s) and hide the ugly noise.

I would also like to conjecture that there is infinitely many primes that look like a giraffe in binary, so it's nothing that unusual.

Re: A prime number whose binary representation looks like a giraffe

#10
I think the more interesting way to do this would be to create a border that's roughly circular to frame the giraffe, and fill that border with noise. Then do the incrementing thing, and your 12 or so bits of noise at the end will blend in better, making it harder for the average person to reverse engineer.

I'm imaging something like this, but with a giraffe instead: https://6d4be195623157e28848-7697ece4918e0a73861de0eb37d0896...

(Sorry for unreadable CDN link)

Post reply on HN