πŸ’‘ Prateek Loves Candy test case-4

I am getting the right output as I compare my eclipse output with test case output-4.
So why hacker blocks ide saying wrong output.

Your code should fail for bigger inputs. You should try using Sieve to reduce the time complexity of your solution.

okk thanks D. it’s working now.