Prolog, Google, and more reveal the answer to life and everything

Prolog apparently reveals the answer to life if you try finding a binding for the variable X. Since it tries proving X for any value, apparently it decides to use the answer to life as the binding. Mysterious!? Tell us what you think.

prologanswertolife

Even Google agrees

Why is 42 the answer to the universe and everything in life? Beats me but apparently its the true answer. Try asking Google it doesn’t disagree.

googleanswertolife

And before you start doubting the big G, you have to consider xkcd webcomics, which are awesome btw. Check out Ask the admin and find out how xkcd is related to the answer to life as well.

Is this starting to get creepy? Look at the palm of your hand, it is also said you have 42 major creases. Weird? Well it might because I just made that up but wouldn’t surprise me if it was true! (In case it is, tell me!)

Share with us your programming encounters!

Encountered something similar? Why not share it with the everyone?

This prolog interpreter can be installed from the command line with a simple

sudo apt-get install swi-prolog

Or depending on the OS you have, you might simply have to use your content manager to download it to your system.

Tags: , , , , ,