RosettaCodeData/Task/Long-year/J/long-year.j
2023-07-01 13:44:08 -04:00

3 lines
113 B
Text

p =: 1 4 _100 400&(7 | [: <. +/ @: %~)"1 0
ily =: (4=p) +. 3=p@:<:
ply =: (#~ ily)@:([ + 1+i.@:-~)