# Nokia mystery puzzle [closed]

A friend sent me this puzzle. I'm pretty sure solving it will require some programming. Can anyone crack it? The original is here in case of encoding issues in the past below.

``````Did you know that...
List of prime numbers include 2 as only even number, but not 1 which is equally not divisible by any other number than itself and 1?
Indexes in most of the programming languages start from 0?
Random mess is often considered as just "life"?
Prime bits of life include open position in Nokia?
Start here:
``````
-

## closed as off-topic by nyuszika7h, Martin Ender♦, Chron, daniero, Kyle KanosJul 8 '14 at 23:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Questions without an objective primary winning criterion are off-topic, as they make it impossible to indisputably decide which entry should win." – nyuszika7h, Martin Ender, Chron, daniero, Kyle Kanos
If this question can be reworded to fit the rules in the help center, please edit the question.

The challenge is over. Thoughts are running through your mind: "YES! I did it!" "Was this all?" "This was easy! I want more!"... :) – gnibbler Jan 31 '11 at 2:11

## Python - 132 chars

Data is read from stdin, starting from the "Qn..."

``````I=raw_input()
print("%X"%int("".join(`ord(I[x/8])>>(7-x%8)&1`*all(x%f for f in range(2,x))for x in range(2,24024)),2)).decode('hex')
``````
-
How do I run it? Cmd.exe text encoding doesn't allow me to paste the text correctly – user11 Feb 5 '11 at 20:58
I just get a bunch of gibberish. – John Feb 5 '11 at 21:31
Me too /15chars – user11 Feb 5 '11 at 21:32
@John, M28, you'll have to copy it from the provided link, the version in the question doesn't work at all – gnibbler Feb 5 '11 at 22:54
I also got gibberish at first. It was an encoding issue. Try this: `wget http://www.otit.fi/mystery.txt; sed '1,6d' mystery.txt | python nokia.py` – marcog Feb 6 '11 at 16:14