Given a problem, you can think of a solution. But given an answer, can you think of a solution? Vortex welcomes you to participate in a one of a kind event with Hunt the Code! Twist your brain to generate solutions for a given answer!

Contest Link : https://www.hackerrank.com/hunt-the-code-2022
Contest Timing : 20:00 to 22:30 IST, 26th Feb
Duration : 2:30 hours
CASH PRIZES Distribution (Only for Indians):
- INR 1500
- INR 1000
- INR 500
Registeration for Prizes: Either fill up the GForm or use the same email registered with Vortex website to participate in this event for validation to get the prizes
For more info : Hunt The Code
We have put great effort into preparing for this contest. We genuinely hope that you will enjoy retracing the source code from the combination of inputs & outputs and writing optimised code to run it against hidden test cases.
Good Luck & Have Fun! Hope to see you participating!!








Why is this submission giving WA for Q9? I checked it for so many samples and it was right everytime. On submission it was showing WA for all the test cases. Basically just multiply the answer with $$$i$$$ if $$$i$$$ is a prime, else increment i :(
Your idea to multiply all primes $$$ \lt = n$$$ is correct. You just had to use
intinstead oflong longand let the product overflow, to get full points. Idk if that was intended, but that gave me full points. I thought about this after seeing the output for $$$21 - 40$$$. Notice theusing ll = int;Thanks for the reply. It worked. Though I find it ridiculous.
true, i think this was most probably a mistake.
I did the same mistake !! Thanks for the solution :) btw did u solve q8 ?? I'll be glad to know about it's solution.
I couldn't solve q8 too :(
Editorial ??
Hey, is the editorial up?