Task

Determine whether a given year is a leap year in the Gregorian calendar.



See also

 Leap year (wiki)


isLeapYear = function(year)
  return year%4==0 and (year % 100 or not year % 400)
end function