Skip to main content
1 of 2
dingledooper
  • 22.9k
  • 1
  • 36
  • 125

JavaScript (Node.js), 33 bytes

Returns a positive integer for Truthy, and 0 for Falsey.

f=(n,x=1)=>x>n?!n:!(n%x)-f(n,x+2)

Try it online!

dingledooper
  • 22.9k
  • 1
  • 36
  • 125