Friday 10 June 2016

password - The Security to the Party [Part 7]


A party is being held at a local mansion. The host is very rich and his success is because of one thing — his famous recipe for spaghetti!


The only guests that may attend are people who correctly reply to the guard at the door.


Here's where you come in. You and a friend are trying to steal this recipe. You sneak by and listen to the passwords.


The first guest arrives. The security says "8", and the guest replies "4".



The second guest arrives. The security says "2", the guest replies "1".


The third guest arrives. The security says "6", the guest replies "3".


Your friend thinks he's got it all figured out (again), so he walks up to the door and the security says "16". He replies "8", and is laughed out of town.


Another guest arrives, security says "10" and the guest replies "4" to get in.


You walk up and get a "13" from security. What is your response?


This is the latest installment in the series:
The Security to the Party
The Security to the Party [Part 2]
The Security to the Party [Part 3]
The Security to the Party [Part 4]

The Security to the Party [Part 5]
The Security to the Party [Part 6]



Answer




It is the number of prime numbers up to and including the number the guard says. Therefore you should answer with 6.



No comments:

Post a Comment

Understanding Stagnation point in pitot fluid

What is stagnation point in fluid mechanics. At the open end of the pitot tube the velocity of the fluid becomes zero.But that should result...