Skip to main content
deleted 7 characters in body
Source Link

Python 3, 79 7070 63 bytes

Saved 916 bytes thanks to @ArnauldArnauld and Jo King, Thanksthanks!

defp=lambda p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!Try it online!

Python 3, 6767 60 bytes with ~ instead of ‾

defp=lambda p(s):
 return len(s)<2or(~(ord(s[-2])//7^ord(s[-1]))&p(s[:-1]))

Try it online!Try it online!

Python 3, 79 70 bytes

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 67 bytes with ~ instead of ‾

def p(s):
 return len(s)<2or(~(ord(s[-2])//7^ord(s[-1]))&p(s[:-1]))

Try it online!

Python 3, 79 70 63 bytes

Saved 16 bytes thanks to Arnauld and Jo King, thanks!

p=lambda s:len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 67 60 bytes with ~ instead of ‾

p=lambda s:len(s)<2or(~(ord(s[-2])//7^ord(s[-1]))&p(s[:-1]))

Try it online!

added 446 characters in body
Source Link

Python 3, 79 70 bytes

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 67 bytes with ~ instead of ‾

def p(s):
 return len(s)<2or(~(ord(s[-2])//7^ord(s[-1]))&p(s[:-1]))

Try it online!

Python 3, 79 70 bytes

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 79 70 bytes

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 67 bytes with ~ instead of ‾

def p(s):
 return len(s)<2or(~(ord(s[-2])//7^ord(s[-1]))&p(s[:-1]))

Try it online!

added 358 characters in body
Source Link

Python 3Python 3, 7979 70 bytes

def p(s):
  return len(s)<2 or ((ord(s[-2])%13>5)^ord(s[-1])%2 and p(s[:-1]))

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Python 3, 79 bytes

def p(s):
  return len(s)<2 or ((ord(s[-2])%13>5)^ord(s[-1])%2 and p(s[:-1]))

Python 3, 79 70 bytes

Saved 9 bytes thanks to @Arnauld, Thanks!

def p(s):
 return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1])

Try it online!

Source Link
Loading