Crack The Code
CodeChefOpen on judge ↗
The chef is an agent and is trying to enter into a facility through a secret door. To enter through the secret door, he needs to enter a code. The code is a substring of a string which is formed by concatenating the squares of all the primes in ascending order (i.e “492549121…..”). Chef finds 2 numbers ($N$ and $K$) as a hint. $N$ is the index and $K$ is the length of the substring that is to be u
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start