Skip to main content
added 104 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK), 7774 bytes

n->{int d=n/10000,m=n/100%100;return(m==2?n%4<1?2:1:~m%9%2)<31-d&13>m&d*m>0;(n/=1e4)&13>m&n*m>0;}

Try it online!Try it online!

Credits

Java (JDK), 77 bytes

n->{int d=n/10000,m=n/100%100;return(m==2?n%4<1?2:1:~m%9%2)<31-d&13>m&d*m>0;}

Try it online!

Credits

Java (JDK), 74 bytes

n->{int m=n/100%100;return(m==2?n%4<1?2:1:~m%9%2)<31-(n/=1e4)&13>m&n*m>0;}

Try it online!

Credits

added 85 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK), 7877 bytes

n->{int d=n/10000,m=n/100%100;return 31-(m==2?n%4<1?2:1:~m%9%2)>d&13>m&d*m>0;<31-d&13>m&d*m>0;}

Try it online!Try it online!

Credits

Java (JDK), 78 bytes

n->{int d=n/10000,m=n/100%100;return 31-(m==2?n%4<1?2:1:~m%9%2)>d&13>m&d*m>0;}

Try it online!

Java (JDK), 77 bytes

n->{int d=n/10000,m=n/100%100;return(m==2?n%4<1?2:1:~m%9%2)<31-d&13>m&d*m>0;}

Try it online!

Credits

deleted 3 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (JDK), 8278 bytes

n->{int d=n/10000,m=n/100%100;return 31-(m==2?29+(n%4+3)/4n%4<1?2:31-1:~m%9%2)>d&d>0&13>m&m>0;>d&13>m&d*m>0;}

Try it online!Try it online!

Java (JDK), 82 bytes

n->{int d=n/10000,m=n/100%100;return(m==2?29+(n%4+3)/4:31-~m%9%2)>d&d>0&13>m&m>0;}

Try it online!

Java (JDK), 78 bytes

n->{int d=n/10000,m=n/100%100;return 31-(m==2?n%4<1?2:1:~m%9%2)>d&13>m&d*m>0;}

Try it online!

Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading