Skip to main content
2 of 3
deleted 14 characters in body
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Octave, 23 bytes

@(n)sum(1:sqrt(2*n))==n

Try it online!

Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372