Prime Dates

Sort by

recency

|

22 Discussions

|

  • + 0 comments

    I fixed the existing code. When I submit, all the hiden tests fail. I checked one, and it reported a "runtime error" but, no other information. I deserve my points back.

    Code won't even run for Java 7 or 15...it reports some python error. What a pathetic joke this is.

  • + 0 comments

    The problem should include the rules for leap years as part of the instructions. Here is the correct version of the leap year code.

    def updateLeapYear(year):
        if year % 400 == 0:
            month[2] = 29
        elif year % 100 == 0:
            month[2] = 28
        elif year % 4 == 0:
            month[2] = 29
        else:
            month[2] = 28
    
  • + 0 comments

    This problem is so horribly written, it needs to be completely redone, that gives the leap year formula in the problem statement. And that's not mentioning this line 'Firstly, sequentially concatinate the date, month and year, into a new integer x erasing the leading zeroes.' But in a solution that 100% works, x contains dates like this 2082025 which is 2 08 2025, so there is a leading zero for the month.

  • + 0 comments

    Line 6

    month[2] = 28 -> month[2] = 29

    Line 8

    month[2] = 29 -> month[2] = 28

    Line 35

    x = x * 1000 + y1 -> x = x * 10000 + y1

    Line 36

    if x % 4 == 0 and x % 7 == 0: -> if x % 4 == 0 or x % 7 == 0:

    Line 47

    m1 = m1 + 1 -> m1 = 1

  • + 1 comment

    I dont understand, I have a blank page for c#