# [Python 3], <s>79</s> 70 bytes *Saved 9 bytes thanks to @Arnauld, Thanks!* <!-- language-all: lang-python --> def p(s): return len(s)<2or((ord(s[-2])%13>5)^ord(s[-1])%2)&p(s[:-1]) [Try it online!][TIO-jtf2v60z] [Python 3]: https://docs.python.org/3/ [TIO-jtf2v60z]: https://tio.run/##K6gsycjPM/7/PyU1TaFAo1jTikuhKLWktChPISc1D8i3Mcov0tDIL0rRKI7WNYrVVDU0tjPVjIMKGAIFjDTVgBqjrUCc/wVFmXklGgUaSvHx@o8a9gFRTIx@TAyYo6SpyYUkDwT6UDXICFWVPpD7HwA "Python 3 – Try It Online"