Chef Lucky Numbers
CodeChefOpen on judge ↗
Chef’s favourite numbers are $2, 3$ and $5$. So he decided to find all the numbers whose only prime factors are $2, 3$ or $5$ and termed all of them as his lucky numbers. He started doing the work and made a list of first $11$ such numbers i.e. : $1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15$. But he is busy with some other work also so he asked you for your help. Can you help him to find the $N$-th 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