Skip to main content
2 of 5
added 2 characters in body
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

Haskell, 52 bytes

x=[6,9,20]
f n|elem n x=1>0|n<1=1<0
f n=any(f.(n-))x

Try it online!

Wheat Wizard
  • 100k
  • 22
  • 282
  • 661