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.
π‘ Prateek Loves Candy test case-4
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.