After pretty sick 12 parties, obviously 13th party occured during "Halloween".
Halloween themed 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 Evil Spaghetti!
The only guests that may attend are people the host knows and trusts, whom he gave the password to enter to.
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 "1", and the guest replies "3" and guard let him pass.
The second guest arrives. The security says "3", the guest replies "3" and guard let him pass.
The third guest arrives. The security says "9", the guest replies "3" and guard let him pass.
You're friend thinks he got it all figured out. He approaches the security and guard say "7", when he replies "3", guard looked to your friend waited for a bit before talking. Your friend was tense and holding his position to dodge possible elephant attacks. Suddenly guard said "Welcome Sir" and let him in. Unfortunately your friend still needs you to steal evil spaghetti recipe.
Then, another guest arrives, you seem to get the same pattern, security says "2" and he says "2" to get in.
You walk up to security and get "13", what is the correct response?
Hint 1:
Meanwhile one more guest arrives, guard says "4" and guest replies with "1".
Hint 2:
Later one more guest arrives, guard says "14" and guest replies with "4".