Lucky Primes
CodeChefOpen on judge ↗
Ajay has had bad luck for the last 7 years. His friend blames his reckless decision making for this and suggests him to respect 'Vaastu' and follow astrology as everything is achievable if it's written in the stars. His astrologer, (yes, he has an astrologer) has told him that his luck is going to change in the $k$th lunar eclipse and that 'the answer is in the primes'. He wants to try his luc
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