News for hackers. Stuff that matters.
Re:A prime number whose binary representation looks like a g... by userbinator on Saturday January 20, 2018 @11:34AM (#16193961)
Great, another great demonstration of the fundamental principles of digital computing - representation and interpretation of data. It's been my experience teaching CS courses that many students, despite being taught bits and bytes and binary and ASCII and so forth, don't really "get it" until they see things like this.

This particular one only looks like a giraffe when it's interpreted as a 1bpp big-endian bitmap, but you could probably do the same with a colour (24bpp, in whatever order you wish) photo.

Here's another fun idea: write a short program that checks if a file is a prime number. Now you can get into the principles of CRCs, RS, and other error-correction codes...

Re:A prime number whose binary representation looks like a g... by qualitytime on Saturday January 20, 2018 @04:23PM (#16195499)
"write a short program that checks if a file is a prime number."

What do you mean? I tried googling but failed.

Re:A prime number whose binary representation looks like a g... by colejohnson66 on Sunday January 21, 2018 @03:58PM (#16199989)
Hint: Interpret the file’s bits as a single number
Re:A prime number whose binary representation looks like a g... by qualitytime on Monday January 22, 2018 @04:11AM (#16203005)
Thanks for the clarification.
Re:A prime number whose binary representation looks like a g... by qualitytime on Sunday January 21, 2018 @07:05AM (#16197772)
Was that a downvote? For asking a question? Jeez.