Skip to main content
1 of 3
Arnauld
  • 197.6k
  • 20
  • 179
  • 650

#JavaScript (ES6), 51 bytes

f=(a,k=0)=>a.some((n,i)=>n<4*k*k-~-i*k)?~k:f(a,k-1)

Try it online!

Arnauld
  • 197.6k
  • 20
  • 179
  • 650