Prime Dates

  • + 2 comments

    Why hacker rank! why!

    Input (stdin) 02-08-2025 04-09-2025 Your Output (stdout) 5 Expected Output 5

    • + 2 comments

      It shows error if you made changes in lines where you not supposed to change anything. Even if you move all as it is, the error still be there. Reset the code, and change only 5 lines that have a mistake helps me to submit. Just in case someone else would have the same issue.

      • + 0 comments

        Wow, that's bonkers. I ran into the same issue; I got the code working, who cares if I rewrote a bunch of it?!

    • + 0 comments

      This happened to me too. It's dumb for Python, but make sure you keep the semicolon at the end of the return even though it's unnecessery. I had the correct solution and output, but it only passed the test cases when I put back the semicolon.